]> git.puffer.fish Git - matthieu/gru.git/commitdiff
fix small errors in linting
authorMatthieuCoder <matthieu@matthieu-dev.xyz>
Wed, 4 Jan 2023 22:30:42 +0000 (02:30 +0400)
committerMatthieuCoder <matthieu@matthieu-dev.xyz>
Wed, 4 Jan 2023 22:30:42 +0000 (02:30 +0400)
package.json
src/commands/ping.ts
src/sys/events/client.ts
src/sys/events/transport.ts
src/sys/handler/index.ts

index 547a2be294df0a78c23a36534adbebfd9893d319..4db2b8fe0b40acef1c50e825fb05876ea938072b 100644 (file)
@@ -37,7 +37,9 @@
       "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
   }
index 8e03af824944cafe717cea7786bb8c47e6436785..f92485b1cc8877040ad4f826ec3adee3b4bc654e 100644 (file)
@@ -4,7 +4,7 @@ import {
        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';
 
index 73fe34fdfff4aefe499666cb8f01627995b043ac..562ff4761c40caff32bf95695f869c20a5be845d 100644 (file)
@@ -3,10 +3,9 @@ import {type CamelCase, type PascalCase} from 'type-fest';
 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';
@@ -109,7 +108,7 @@ export class Client extends undefinedClient {
                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);
 
index 1a2e86a4b885b78ef5bbc1a55f23921fcb02d1d5..cd2d8c27c8bd17a7f7ab8855ac484a4aae010d5f 100644 (file)
@@ -12,7 +12,7 @@ import {
        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 '.';
 
index 2d5e2321818f760c74be8b9e5f7fd6d24a77d8e4..a832d1221511a3d45f3c4f124b3bec2b22e6870d 100644 (file)
@@ -7,7 +7,7 @@ import {
        type RESTPostAPIChatInputApplicationCommandsJSONBody,
        Routes,
        type APIInteractionResponse,
-} from 'discord-api-types/v10.js';
+} from 'discord-api-types/v10';
 
 export * from './builder';