This commit is contained in:
Daniel Odendahl Jr
2018-04-22 03:05:29 +00:00
parent cc27e287aa
commit 6ebbd31a1a
3 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -34,7 +34,7 @@ module.exports = class TagEditCommand extends Command {
if (!msg.channel.permissionsFor(msg.author).has('MANAGE_MESSAGES') && tag.userID !== msg.author.id) { if (!msg.channel.permissionsFor(msg.author).has('MANAGE_MESSAGES') && tag.userID !== msg.author.id) {
return msg.reply('You can only edit your own tags.'); return msg.reply('You can only edit your own tags.');
} }
await Tag.update({ text }, { where: { name, guild: msg.guild.id } }); await Tag.update({ text }, { where: { name, guildID: msg.guild.id } });
return msg.reply(`Edited **${name}**.`); return msg.reply(`Edited **${name}**.`);
} }
}; };
+1 -1
View File
@@ -36,7 +36,7 @@ module.exports = class TagInfoCommand extends Command {
const embed = new MessageEmbed() const embed = new MessageEmbed()
.setColor(0x00AE86) .setColor(0x00AE86)
.setThumbnail(msg.guild.iconURL()) .setThumbnail(msg.guild.iconURL())
.addField(' name', tag.name, true) .addField(' Name', tag.name, true)
.addField(' Author', author, true) .addField(' Author', author, true)
.addField(' Created On', new Date(tag.createdAt).toDateString(), true) .addField(' Created On', new Date(tag.createdAt).toDateString(), true)
.addField(' Modified On', new Date(tag.updatedAt).toDateString(), true); .addField(' Modified On', new Date(tag.updatedAt).toDateString(), true);
+1 -1
View File
@@ -1,6 +1,6 @@
{ {
"name": "xiao", "name": "xiao",
"version": "73.2.0", "version": "73.2.1",
"description": "Your personal server companion.", "description": "Your personal server companion.",
"main": "Xiao.js", "main": "Xiao.js",
"scripts": { "scripts": {