Merge branch '1.13.0' into main

This commit is contained in:
TrèsAbhi authored and GitHub committed 2023-09-07 15:23:10 -05:00
commit 626b1e8601
32 files changed
+277 -97

No files matched your search

+5 -8
View File
@@ -51,7 +51,6 @@ export type InteractionReturnable =
| Promise<InteractionIterableReturnable>;
export interface Registry {
inDevelopment: boolean;
inProduction: boolean;
}
@@ -124,14 +123,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);
}
});