From e05f25f4b98cac3c2409cee9a664ab5ea6251467 Mon Sep 17 00:00:00 2001 From: IRONM00N <64110067+IRONM00N@users.noreply.github.com> Date: Mon, 27 Dec 2021 13:12:49 -0500 Subject: better typings and some other stuff --- src/commands/config/blacklist.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/commands/config/blacklist.ts') diff --git a/src/commands/config/blacklist.ts b/src/commands/config/blacklist.ts index a6e6a3d..d119774 100644 --- a/src/commands/config/blacklist.ts +++ b/src/commands/config/blacklist.ts @@ -1,5 +1,5 @@ -import { AllowedMentions, BushCommand, type BushMessage, type BushSlashMessage } from '#lib'; -import { GuildTextBasedChannel, User } from 'discord.js'; +import { AllowedMentions, ArgType, BushCommand, type BushMessage, type BushSlashMessage } from '#lib'; +import { User } from 'discord.js'; export default class BlacklistCommand extends BushCommand { public constructor() { @@ -51,7 +51,7 @@ export default class BlacklistCommand extends BushCommand { public override async exec( message: BushMessage | BushSlashMessage, - args: { action?: 'blacklist' | 'unblacklist'; target: GuildTextBasedChannel | User | string; global: boolean } + args: { action?: 'blacklist' | 'unblacklist'; target: ArgType<'channel'> | ArgType<'user'> | string; global: boolean } ) { let action: 'blacklist' | 'unblacklist' | 'toggle' = args.action ?? (message?.util?.parsed?.alias as 'blacklist' | 'unblacklist' | undefined) ?? 'toggle'; -- cgit