mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-10-23 19:49:50 +02:00
feat: moved cmdName behaviour to interaction create
This commit is contained in:
1 parent
3e8e198c88
commit
6f21789c46
17 files changed
+21
-37
No files matched your search
@@ -96,10 +96,14 @@ export const publicCommands: RESTPostAPIChatInputApplicationCommandsJSONBody[] =
|
||||
|
||||
Object.entries(commands).forEach(([, registry]) => {
|
||||
if (isDev() ? registry.inDevelopment : registry.inProduction) {
|
||||
const json = registry.command
|
||||
.setName(isDev() ? `${registry.command.name}dev` : registry.command.name)
|
||||
.toJSON();
|
||||
|
||||
if (registry.inPublic) {
|
||||
publicCommands.push(registry.command.toJSON());
|
||||
publicCommands.push(json);
|
||||
} else {
|
||||
guildCommands.push(registry.command.toJSON());
|
||||
guildCommands.push(json);
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
Reference in new issue
Block a user