Update main branch #15

Merged
Navy.gif merged 21 commits from beta into main 2024-07-26 16:40:55 +02:00
Showing only changes of commit 5f07fd3e15 - Show all commits

View File

@ -1,7 +1,5 @@
import { userInfo } from 'os'; import { userInfo } from 'os';
// eslint-disable-next-line @typescript-eslint/ban-ts-comment import { Util as U, FilterUtil as FU } from '../../../../utilities/index.js';
// @ts-ignore
import { Util, FilterUtil } from '../../../../utilities/index.js';
import { inspect } from 'util'; import { inspect } from 'util';
import { CommandOptionType, CommandParams } from '../../../../../@types/Client.js'; import { CommandOptionType, CommandParams } from '../../../../../@types/Client.js';
import DiscordClient from '../../../DiscordClient.js'; import DiscordClient from '../../../DiscordClient.js';
@ -12,6 +10,8 @@ import { ReplyOptions } from '../../../../../@types/Wrappers.js';
const { username } = userInfo(); const { username } = userInfo();
class EvalCommand extends Command class EvalCommand extends Command
{ {
static Util = U;
static FilterUtil = FU;
constructor (client: DiscordClient) constructor (client: DiscordClient)
{ {
super(client, { super(client, {
@ -32,6 +32,10 @@ class EvalCommand extends Command
if (async?.asBool) if (async?.asBool)
params = `(async () => {${params}})()`; 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 // eslint-disable-next-line @typescript-eslint/ban-ts-comment
// @ts-ignore // declared for ease of use // @ts-ignore // declared for ease of use
const { guild, author, member, client } = invoker; const { guild, author, member, client } = invoker;