Skip to content

Commit

Permalink
Merge pull request #13 from Mogyuchi/command-register
Browse files Browse the repository at this point in the history
  • Loading branch information
cm-ayf authored Nov 20, 2023
2 parents e48e2a5 + a0898e7 commit fdfb51d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 18 deletions.
18 changes: 0 additions & 18 deletions scripts/register.ts

This file was deleted.

5 changes: 5 additions & 0 deletions src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,4 +30,9 @@ client.on(Events.InteractionCreate, async (interaction) => {
}
});

client.once(Events.ClientReady, async (client) => {
client.application.commands.cache.clear();
await client.application.commands.set([join.definition, leave.definition]);
});

void client.login();

0 comments on commit fdfb51d

Please sign in to comment.