trying to see why it dosent work on a sepcific server
This commit is contained in:
parent
cfc343e5dc
commit
8a3bb73af6
1 changed files with 24 additions and 19 deletions
|
@ -28,6 +28,7 @@ class PruneCommand extends Command {
|
||||||
}
|
}
|
||||||
|
|
||||||
async exec(message,args) {
|
async exec(message,args) {
|
||||||
|
try {
|
||||||
let slowmodeNumber = args.slowmodeNumber;
|
let slowmodeNumber = args.slowmodeNumber;
|
||||||
let realtime = args.realtime;
|
let realtime = args.realtime;
|
||||||
|
|
||||||
|
@ -48,6 +49,10 @@ class PruneCommand extends Command {
|
||||||
return message.channel.send('Slowmode have been disabled!');
|
return message.channel.send('Slowmode have been disabled!');
|
||||||
return message.channel.send(`Slowmode have been set to ${slowmodeNumber} seconds!`);
|
return message.channel.send(`Slowmode have been set to ${slowmodeNumber} seconds!`);
|
||||||
}
|
}
|
||||||
|
} catch (err) {
|
||||||
|
console.error(err);
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue