mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-20 21:44:48 +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) {
|
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}**.`);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -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
@@ -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": {
|
||||||
|
|||||||
Reference in New Issue
Block a user