diff options
author | TymanWasTaken <tyman@tyman.tech> | 2021-06-19 11:31:36 -0600 |
---|---|---|
committer | TymanWasTaken <tyman@tyman.tech> | 2021-06-19 11:31:36 -0600 |
commit | 873123996889c824c7d52785b7cf2903372b71a5 (patch) | |
tree | 00e811e9e9a43f030d6edc6e67f7064b04e37bc1 /src/listeners/client | |
parent | d055e0dbb86ef7fd4ee96a1531b51181e825fb4b (diff) | |
download | tanzanite-873123996889c824c7d52785b7cf2903372b71a5.tar.gz tanzanite-873123996889c824c7d52785b7cf2903372b71a5.tar.bz2 tanzanite-873123996889c824c7d52785b7cf2903372b71a5.zip |
fix: Use latest features of akairo fork
Diffstat (limited to 'src/listeners/client')
-rw-r--r-- | src/listeners/client/syncSlashCommands.ts | 19 |
1 files changed, 0 insertions, 19 deletions
diff --git a/src/listeners/client/syncSlashCommands.ts b/src/listeners/client/syncSlashCommands.ts deleted file mode 100644 index 69b91bc..0000000 --- a/src/listeners/client/syncSlashCommands.ts +++ /dev/null @@ -1,19 +0,0 @@ -import { BushListener } from '../../lib/extensions/BushListener'; - -export default class SyncSlashCommandsListener extends BushListener { - constructor() { - super('syncslashcommands', { - emitter: 'client', - event: 'ready' - }); - } - async exec(): Promise<void> { - if (this.client.config.dev && this.client.config.devGuild) { - // Use guild slash commands for instant registration in dev - await this.client.util.syncSlashCommands(false, this.client.config.devGuild); - } else { - // Use global in production - await this.client.util.syncSlashCommands(); - } - } -} |