mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-15 00:12:38 +02:00
Drop Reply in most cases
This commit is contained in:
@@ -22,12 +22,12 @@ class WarnCommand extends commando.Command {
|
||||
}
|
||||
console.log("[Command] " + message.content);
|
||||
if (message.channel.type === 'dm') {
|
||||
message.reply(":x: This is a DM!");
|
||||
message.channel.sendMessage(":x: This is a DM!");
|
||||
} else {
|
||||
let username = message.mentions.users.first();
|
||||
let reason = message.content.split(" ").slice(2).join(" ");
|
||||
if (message.mentions.users.size !== 1) {
|
||||
message.reply(":x: Either too many or no members, only mention one person!");
|
||||
message.channel.sendMessage(":x: Either too many or no members, only mention one person!");
|
||||
} else {
|
||||
if(message.member.hasPermission('KICK_MEMBERS')) {
|
||||
message.channel.sendMessage(":ok_hand:");
|
||||
@@ -41,7 +41,7 @@ class WarnCommand extends commando.Command {
|
||||
'**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.reply("**Note: No log will be sent, as there is not a channel named 'mod_logs'. Please create it to use the logging feature.**");
|
||||
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.**");
|
||||
}
|
||||
} else {
|
||||
message.channel.sendMessage(":x: You don't have the Kick Members Permission!");
|
||||
|
||||
Reference in New Issue
Block a user