aboutsummaryrefslogtreecommitdiff
path: root/src/listeners/commands
diff options
context:
space:
mode:
authorIRONM00N <64110067+IRONM00N@users.noreply.github.com>2021-10-23 18:20:35 -0400
committerIRONM00N <64110067+IRONM00N@users.noreply.github.com>2021-10-23 18:20:35 -0400
commite1c9873287b1bdc24a07982b61652894423efa51 (patch)
treee8a551c2caa03f285e882e6b2519cbe52ac3376e /src/listeners/commands
parent8200a4427bb5c4093e7d4f1b30a3fdd7ee3380c1 (diff)
downloadtanzanite-e1c9873287b1bdc24a07982b61652894423efa51.tar.gz
tanzanite-e1c9873287b1bdc24a07982b61652894423efa51.tar.bz2
tanzanite-e1c9873287b1bdc24a07982b61652894423efa51.zip
use isSlashMessage
Diffstat (limited to 'src/listeners/commands')
-rw-r--r--src/listeners/commands/commandCooldown.ts5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/listeners/commands/commandCooldown.ts b/src/listeners/commands/commandCooldown.ts
index 0ae886a..9a57ac0 100644
--- a/src/listeners/commands/commandCooldown.ts
+++ b/src/listeners/commands/commandCooldown.ts
@@ -1,5 +1,4 @@
import { BushCommandHandlerEvents, BushListener } from '@lib';
-import { Message } from 'discord.js';
export default class CommandCooldownListener extends BushListener {
public constructor() {
@@ -17,11 +16,11 @@ export default class CommandCooldownListener extends BushListener {
command ?? message.util!.parsed?.command
}>> but it is on cooldown for <<${Math.round(remaining / 1000)}>> seconds.`
);
- message.util!.isSlash
+ message.util!.isSlashMessage(message)
? message.util?.reply({
content: `⏳ This command is on cooldown for ${Math.round(remaining / 1000)} seconds.`,
ephemeral: true
})
- : await (message as Message).react('⏳').catch(() => null);
+ : await message.react('⏳').catch(() => null);
}
}