From 354af8195407f582b50c360a3174c7a5de08adeb Mon Sep 17 00:00:00 2001 From: almostSouji Date: Tue, 17 Dec 2024 15:22:33 +0100 Subject: [PATCH] chore(deployment): typo --- src/deployFunctions/auxtypes.ts | 4 ++-- src/deployFunctions/deploy.ts | 12 ++++++------ 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/src/deployFunctions/auxtypes.ts b/src/deployFunctions/auxtypes.ts index 35b2285..f8cd6f1 100644 --- a/src/deployFunctions/auxtypes.ts +++ b/src/deployFunctions/auxtypes.ts @@ -1,10 +1,10 @@ -export enum PrerepeaseApplicationCommandContextType { +export enum PreReleaseApplicationCommandContextType { Guild, BotDm, PrivateChannel, } -export enum PrerepeaseApplicationIntegrationType { +export enum PreReleaseApplicationIntegrationType { GuildInstall, UserInstall, } diff --git a/src/deployFunctions/deploy.ts b/src/deployFunctions/deploy.ts index 767a172..a87135c 100644 --- a/src/deployFunctions/deploy.ts +++ b/src/deployFunctions/deploy.ts @@ -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') }); @@ -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, ], })), ),