mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-03 23:36:43 +02:00
Fixes
This commit is contained in:
@@ -34,7 +34,7 @@ module.exports = class TagEditCommand extends Command {
|
||||
if (!msg.channel.permissionsFor(msg.author).has('MANAGE_MESSAGES') && tag.userID !== msg.author.id) {
|
||||
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}**.`);
|
||||
}
|
||||
};
|
||||
|
||||
@@ -36,7 +36,7 @@ module.exports = class TagInfoCommand extends Command {
|
||||
const embed = new MessageEmbed()
|
||||
.setColor(0x00AE86)
|
||||
.setThumbnail(msg.guild.iconURL())
|
||||
.addField('❯ name', tag.name, true)
|
||||
.addField('❯ Name', tag.name, true)
|
||||
.addField('❯ Author', author, true)
|
||||
.addField('❯ Created On', new Date(tag.createdAt).toDateString(), true)
|
||||
.addField('❯ Modified On', new Date(tag.updatedAt).toDateString(), true);
|
||||
|
||||
+1
-1
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "xiao",
|
||||
"version": "73.2.0",
|
||||
"version": "73.2.1",
|
||||
"description": "Your personal server companion.",
|
||||
"main": "Xiao.js",
|
||||
"scripts": {
|
||||
|
||||
Reference in New Issue
Block a user