Skip to content

Commit

Permalink
Bulk overwrite commands (#19)
Browse files Browse the repository at this point in the history
  • Loading branch information
imxeno authored May 20, 2024
1 parent d81c9fc commit 0fac3b6
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion apps/bot/src/main.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,14 @@
import { ApplicationCommandRegistries } from "@sapphire/framework";
import {
ApplicationCommandRegistries,
RegisterBehavior,
} from "@sapphire/framework";
import { MistSapphireClient } from "./client.js";
import { env } from "./env.js";

ApplicationCommandRegistries.setDefaultGuildIds(env.GUILD_IDS);
ApplicationCommandRegistries.setDefaultBehaviorWhenNotIdentical(
RegisterBehavior.BulkOverwrite
);

const client = new MistSapphireClient();

Expand Down

0 comments on commit 0fac3b6

Please sign in to comment.