mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-24 10:25:11 +02:00
return and await
This commit is contained in:
@@ -23,10 +23,10 @@ module.exports = class RouletteCommand extends commando.Command {
|
||||
}
|
||||
console.log(`[Command] ${message.content}`);
|
||||
if (message.channel.type !== 'dm') {
|
||||
message.channel.send(`I choose ${message.guild.members.random().displayName}!`);
|
||||
return message.channel.send(`I choose ${message.guild.members.random().displayName}!`);
|
||||
}
|
||||
else {
|
||||
message.channel.send(':x: Error! This command does not work in DM!');
|
||||
return message.channel.send(':x: Error! This command does not work in DM!');
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user