diff options
Diffstat (limited to 'server/src/commands/mod')
| -rw-r--r-- | server/src/commands/mod/Slowmode.ts | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/server/src/commands/mod/Slowmode.ts b/server/src/commands/mod/Slowmode.ts index 3aec2bd..b352007 100644 --- a/server/src/commands/mod/Slowmode.ts +++ b/server/src/commands/mod/Slowmode.ts @@ -42,21 +42,21 @@ export default class SlowmodeMod extends Command { try { if (amount > 120) { amount = 120; - msg.channel.send('Due to Discord API limitations, slow mode can only be a max of **120** seconds or less! Your specified amount has been rounded down to **120** seconds. (This message will automatically be deleted in 3 seconds.)') - .then(m => m.delete({ timeout: 3000 })); + msg.channel.send('Due to Discord API limitations, slow mode can only be a max of **120** seconds or less! Your specified amount has been rounded down to **120** seconds. (This message will automatically be deleted in 10 seconds.)') + .then(m => m.delete({ timeout: 10000 })); } (msg.channel as TextChannel).setRateLimitPerUser(amount); if (realtime) { let time = 60000 * realtime; - msg.channel.send(`Slowmode has now been set to ${amount} seconds and will end in ${realtime} minutes!`); + msg.channel.send(`Slowmode has now been set to **${amount}** seconds and will end in **${realtime}** minutes!`); setTimeout(() => { (msg.channel as TextChannel).setRateLimitPerUser(0); return msg.channel.send('Slowmode has now been disabled!'); }, time); } else { if (amount == 0) return msg.channel.send('Slowmode has now been disabled!'); - return msg.channel.send(`Slowmode has now been set to ${amount} seconds!`); + return msg.channel.send(`Slowmode has now been set to **${amount}** seconds!`); } } catch (err) { console.error(err); |