11import process from 'node:process' ;
2- import { inlineCode } from '@discordjs/builders' ;
32import type { Collection } from '@discordjs/collection' ;
43import type { APIApplicationCommandInteraction } from 'discord-api-types/v10' ;
54import { ApplicationCommandType } from 'discord-api-types/v10' ;
65import type { Response } from 'polka' ;
76import { deploy } from '../deployFunctions/deploy.js' ;
8- import { staticGlobalCommands } from '../deployFunctions/deployGlobal.js' ;
97import { algoliaResponse } from '../functions/algoliaResponse.js' ;
108import { resolveOptionsToDocsAutoComplete } from '../functions/autocomplete/docsAutoComplete.js' ;
119import { djsDocs } from '../functions/docs.js' ;
@@ -14,21 +12,31 @@ import { nodeAutoCompleteResolve } from '../functions/node.js';
1412import type { Tag } from '../functions/tag.js' ;
1513import { showTag , reloadTags } from '../functions/tag.js' ;
1614import { testTag } from '../functions/testtag.js' ;
17- import type { DiscordDocsCommand } from '../interactions/discorddocs.js' ;
18- import type { DTypesCommand } from '../interactions/discordtypes.js' ;
15+ import { DiscordDocsCommand } from '../interactions/discorddocs.js' ;
16+ import { DTypesCommand } from '../interactions/discordtypes.js' ;
1917import { buildDocsCommand , DocsCommand } from '../interactions/docs.js' ;
20- import type { GuideCommand } from '../interactions/guide.js' ;
21- import type { MdnCommand } from '../interactions/mdn.js' ;
22- import type { NodeCommand } from '../interactions/node.js' ;
23- import type { TagCommand } from '../interactions/tag.js' ;
18+ import { GuideCommand } from '../interactions/guide.js' ;
19+ import { MdnCommand } from '../interactions/mdn.js' ;
20+ import { NodeCommand } from '../interactions/node.js' ;
21+ import { TagCommand } from '../interactions/tag.js' ;
2422import type { TagReloadCommand } from '../interactions/tagreload.js' ;
25- import type { TestTagCommand } from '../interactions/testtag.js' ;
23+ import { TestTagCommand } from '../interactions/testtag.js' ;
2624import type { ArgumentsOf } from '../util/argumentsOf.js' ;
2725import { EMOJI_ID_CLYDE_BLURPLE , EMOJI_ID_DTYPES , EMOJI_ID_GUIDE } from '../util/constants.js' ;
2826import { reloadDjsVersions } from '../util/djsdocs.js' ;
2927import { transformInteraction } from '../util/interactionOptions.js' ;
3028import { prepareErrorResponse , prepareResponse } from '../util/respond.js' ;
3129
30+ const staticGlobalCommands = [
31+ DiscordDocsCommand ,
32+ GuideCommand ,
33+ MdnCommand ,
34+ NodeCommand ,
35+ TagCommand ,
36+ TestTagCommand ,
37+ DTypesCommand ,
38+ ] ;
39+
3240type CommandName =
3341 | 'discorddocs'
3442 | 'docs'
0 commit comments