Huge Array Change

This commit is contained in:
dragonfire535
2017-03-13 21:59:25 -04:00
parent b3d61772e6
commit 46f9e8e639
20 changed files with 73 additions and 23 deletions
+5 -1
View File
@@ -17,7 +17,11 @@ class RouletteCommand extends commando.Command {
if(!message.channel.permissionsFor(this.client.user).hasPermission('READ_MESSAGES')) return;
}
console.log("[Command] " + message.content);
message.channel.sendMessage("I choose " + message.guild.members.random().displayName + "!");
if(message.channel.type === 'dm') {
message.channel.sendMessage(':x: Error! This is a DM!');
} else {
message.channel.sendMessage("I choose " + message.guild.members.random().displayName + "!");
}
}
}