"import/extensions": "off",
"unicorn/prefer-top-level-await": "off",
"no-constructor-return": "off",
- "unicorn/no-array-reduce": "off"
+ "unicorn/no-array-reduce": "off",
+ "import/no-unassigned-import": "off",
+ "n/file-extension-in-import": "off"
},
"prettier": true
}
ApplicationCommandOptionType,
ApplicationCommandType,
InteractionResponseType,
-} from 'discord-api-types/v10.js';
+} from 'discord-api-types/v10';
import {promise} from 'ping';
import {CommandBuilder, type HandlerFn} from '../sys/handler';
import {REST, type RESTOptions} from '@discordjs/rest';
import {
type APIInteractionResponse,
- type APIInteractionResponseCallbackData,
type GatewayDispatchPayload,
type GatewayInteractionCreateDispatchData,
-} from 'discord-api-types/v10.js';
+} from 'discord-api-types/v10';
import type TypedEmitter from 'typed-emitter';
import {API} from '@discordjs/core';
import {Transport, type TransportOptions} from './transport';
transport: TransportOptions;
}) {
super();
- this.rest = new REST(options.rest);
+ this.rest = new REST(options.rest).setToken('_');
this.transport = new Transport(this, options.transport);
this.api = new API(this.rest);
type APIInteractionResponseCallbackData,
type GatewayDispatchPayload,
Routes,
-} from 'discord-api-types/v10.js';
+} from 'discord-api-types/v10';
import {type CamelCase} from 'type-fest';
import {type Client, type EventName, type EventsHandlerArguments} from '.';
type RESTPostAPIChatInputApplicationCommandsJSONBody,
Routes,
type APIInteractionResponse,
-} from 'discord-api-types/v10.js';
+} from 'discord-api-types/v10';
export * from './builder';