This is going to error so bad

This commit is contained in:
Dragon Fire
2020-02-11 15:40:49 -05:00
parent 085284821c
commit db7bb7f49f
9 changed files with 16 additions and 12 deletions
+1 -1
View File
@@ -16,6 +16,6 @@ module.exports = class RandomUserCommand extends Command {
const members = [this.client.user, msg.channel.recipient];
return msg.say(`I choose ${members[Math.floor(Math.random() * members.length)].username}!`);
}
return msg.say(`I choose ${msg.guild.members.random().displayName}!`);
return msg.say(`I choose ${msg.guild.members.cache.random().displayName}!`);
}
};