feat: removed inDevelopment

This commit is contained in:
TresAbhi committed 2023-08-24 00:08:08 +00:00
1 parent 28172f7f8f
commit eb4cb1fbfe
21 files changed
+5 -30

No files matched your search

+5 -8
View File
@@ -50,7 +50,6 @@ export type InteractionReturnable =
| Promise<InteractionIterableReturnable>;
export interface Registry {
inDevelopment: boolean;
inProduction: boolean;
}
@@ -122,14 +121,12 @@ export const publicCommands: RESTPostAPIChatInputApplicationCommandsJSONBody[] =
commands.then((awaitedCommands) => {
Object.entries(awaitedCommands).forEach(([, registry]) => {
if (isDev() ? registry.inDevelopment : registry.inProduction) {
const json = registry.command.toJSON();
const json = registry.command.toJSON();
if (registry.inPublic) {
publicCommands.push(json);
} else {
guildCommands.push(json);
}
if (registry.inPublic) {
publicCommands.push(json);
} else {
guildCommands.push(json);
}
});