mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-03 23:36:43 +02:00
Switch Moderation Commands to use Description
This commit is contained in:
@@ -40,8 +40,7 @@ class BanCommand extends commando.Command {
|
||||
.setColor(0xFF0000)
|
||||
.setFooter('XiaoBot Moderation', this.client.user.avatarURL)
|
||||
.setTimestamp()
|
||||
.addField('Information',
|
||||
'**Member:** ' + username.username + '#' + username.discriminator + ' (' + username.id + ')\n**Action:** Ban\n**Reason:** ' + reason);
|
||||
.setDescription('**Member:** ' + username.username + '#' + username.discriminator + ' (' + username.id + ')\n**Action:** Ban\n**Reason:** ' + reason);
|
||||
message.guild.channels.find('name', 'mod_logs').sendEmbed(embed).catch(console.error);
|
||||
} else {
|
||||
message.channel.sendMessage("**Note: No log will be sent, as there is not a channel named 'mod_logs'. Please create it to use the logging feature.**");
|
||||
|
||||
@@ -40,8 +40,7 @@ class KickCommand extends commando.Command {
|
||||
.setColor(0xFFA500)
|
||||
.setFooter('XiaoBot Moderation', this.client.user.avatarURL)
|
||||
.setTimestamp()
|
||||
.addField('Information',
|
||||
'**Member:** ' + username.username + '#' + username.discriminator + ' (' + username.id + ')\n**Action:** Kick\n**Reason:** ' + reason);
|
||||
.setDescription('**Member:** ' + username.username + '#' + username.discriminator + ' (' + username.id + ')\n**Action:** Kick\n**Reason:** ' + reason);
|
||||
message.guild.channels.find('name', 'mod_logs').sendEmbed(embed).catch(console.error);
|
||||
} else {
|
||||
message.channel.sendMessage("**Note: No log will be sent, as there is not a channel named 'mod_logs'. Please create it to use the logging feature.**");
|
||||
|
||||
@@ -37,8 +37,7 @@ class WarnCommand extends commando.Command {
|
||||
.setColor(0xFFFF00)
|
||||
.setFooter('XiaoBot Moderation', this.client.user.avatarURL)
|
||||
.setTimestamp()
|
||||
.addField('Information',
|
||||
'**Member:** ' + username.username + '#' + username.discriminator + ' (' + username.id + ')\n**Action:** Warn\n**Reason:** ' + reason);
|
||||
.setDescription('**Member:** ' + username.username + '#' + username.discriminator + ' (' + username.id + ')\n**Action:** Warn\n**Reason:** ' + reason);
|
||||
message.guild.channels.find('name', 'mod_logs').sendEmbed(embed).catch(console.error);
|
||||
} else {
|
||||
message.channel.sendMessage("**Note: No log will be sent, as there is not a channel named 'mod_logs'. Please create it to use the logging feature.**");
|
||||
|
||||
Reference in New Issue
Block a user