mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-12 15:57:43 +02:00
This is going to error so bad
This commit is contained in:
@@ -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}!`);
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user