Skip to content

Commit

Permalink
feat: use register-slash command instead
Browse files Browse the repository at this point in the history
  • Loading branch information
peam1146 committed Dec 26, 2023
1 parent bc3a7fd commit 79e970e
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions packages/what-is-dis/src/bot/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ export class DiscordBot {
}
}

private async registerSlashCommands() {
async registerSlashCommands() {
const commands: RESTPostAPIChatInputApplicationCommandsJSONBody[] =
this.slashCommandCollection.map((command) => command.data)

Expand Down Expand Up @@ -178,10 +178,6 @@ export class DiscordBot {
return this.client
}

reregisterSlashCommands() {
return this.registerSlashCommands()
}

async listen() {
this.setupGracefulShutdown()
this.subscribeGatewayDispatchEvents()
Expand Down

0 comments on commit 79e970e

Please sign in to comment.