From 5f07fd3e15c4483f1cd2728eeb6549df43cf8733 Mon Sep 17 00:00:00 2001 From: "Navy.gif" Date: Mon, 1 Apr 2024 13:47:28 +0300 Subject: [PATCH] Eval command tweaks --- src/client/components/commands/developer/Eval.ts | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/src/client/components/commands/developer/Eval.ts b/src/client/components/commands/developer/Eval.ts index 7049af9..6308f7b 100644 --- a/src/client/components/commands/developer/Eval.ts +++ b/src/client/components/commands/developer/Eval.ts @@ -1,7 +1,5 @@ import { userInfo } from 'os'; -// eslint-disable-next-line @typescript-eslint/ban-ts-comment -// @ts-ignore -import { Util, FilterUtil } from '../../../../utilities/index.js'; +import { Util as U, FilterUtil as FU } from '../../../../utilities/index.js'; import { inspect } from 'util'; import { CommandOptionType, CommandParams } from '../../../../../@types/Client.js'; import DiscordClient from '../../../DiscordClient.js'; @@ -12,6 +10,8 @@ import { ReplyOptions } from '../../../../../@types/Wrappers.js'; const { username } = userInfo(); class EvalCommand extends Command { + static Util = U; + static FilterUtil = FU; constructor (client: DiscordClient) { super(client, { @@ -32,6 +32,10 @@ class EvalCommand extends Command if (async?.asBool) params = `(async () => {${params}})()`; + // eslint-disable-next-line @typescript-eslint/ban-ts-comment + // @ts-ignore // declared for ease of use + const { Util, FilterUtil } = EvalCommand; + // eslint-disable-next-line @typescript-eslint/ban-ts-comment // @ts-ignore // declared for ease of use const { guild, author, member, client } = invoker;