Skip to content

Commit

Permalink
chore(deployment): typo
Browse files Browse the repository at this point in the history
  • Loading branch information
almostSouji committed Dec 17, 2024
1 parent 4ace78d commit 354af81
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions src/deployFunctions/auxtypes.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
export enum PrerepeaseApplicationCommandContextType {
export enum PreReleaseApplicationCommandContextType {
Guild,
BotDm,
PrivateChannel,
}

export enum PrerepeaseApplicationIntegrationType {
export enum PreReleaseApplicationIntegrationType {
GuildInstall,
UserInstall,
}
12 changes: 6 additions & 6 deletions src/deployFunctions/deploy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { config } from 'dotenv';
import { fetch } from 'undici';
import { API_BASE_DISCORD } from '../util/constants.js';
import { logger } from '../util/logger.js';
import { PrerepeaseApplicationCommandContextType, PrerepeaseApplicationIntegrationType } from './auxtypes.js';
import { PreReleaseApplicationCommandContextType, PreReleaseApplicationIntegrationType } from './auxtypes.js';

config({ path: resolve(dirname(fileURLToPath(import.meta.url)), '../../.env') });

Expand All @@ -27,13 +27,13 @@ export async function deploy(data: any, dev = false) {
: data.map((command: any) => ({
...command,
integration_types: [
PrerepeaseApplicationIntegrationType.UserInstall,
PrerepeaseApplicationIntegrationType.GuildInstall,
PreReleaseApplicationIntegrationType.UserInstall,
PreReleaseApplicationIntegrationType.GuildInstall,
],
contexts: [
PrerepeaseApplicationCommandContextType.Guild,
PrerepeaseApplicationCommandContextType.PrivateChannel,
PrerepeaseApplicationCommandContextType.BotDm,
PreReleaseApplicationCommandContextType.Guild,
PreReleaseApplicationCommandContextType.PrivateChannel,
PreReleaseApplicationCommandContextType.BotDm,
],
})),
),
Expand Down

0 comments on commit 354af81

Please sign in to comment.