mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-25 22:32:50 +02:00
Rewrite Permission Checks and Validators
This commit is contained in:
@@ -6,8 +6,6 @@ module.exports = class QuantumCoinCommand extends Command {
|
||||
super(client, {
|
||||
name: 'quantumcoin',
|
||||
aliases: [
|
||||
'oddcoin',
|
||||
'brokencoin',
|
||||
'qcoin'
|
||||
],
|
||||
group: 'response',
|
||||
@@ -17,9 +15,6 @@ module.exports = class QuantumCoinCommand extends Command {
|
||||
}
|
||||
|
||||
run(message) {
|
||||
if (message.channel.type !== 'dm') {
|
||||
if (!message.channel.permissionsFor(this.client.user).hasPermission(['SEND_MESSAGES', 'READ_MESSAGES'])) return;
|
||||
}
|
||||
const qcoin = sides[Math.floor(Math.random() * sides.length)];
|
||||
return message.say(`It landed ${qcoin}.`);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user