diff options
Diffstat (limited to 'src/commands/moderation/ban.ts')
-rw-r--r-- | src/commands/moderation/ban.ts | 18 |
1 files changed, 13 insertions, 5 deletions
diff --git a/src/commands/moderation/ban.ts b/src/commands/moderation/ban.ts index 506a7c3..c0375e0 100644 --- a/src/commands/moderation/ban.ts +++ b/src/commands/moderation/ban.ts @@ -1,5 +1,13 @@ -import { AllowedMentions, BushCommand, Moderation, type BushMessage, type BushSlashMessage } from '#lib'; -import { type Snowflake, type User } from 'discord.js'; +import { + AllowedMentions, + ArgType, + BushCommand, + Moderation, + OptionalArgType, + type BushMessage, + type BushSlashMessage +} from '#lib'; +import { type User } from 'discord.js'; export default class BanCommand extends BushCommand { public constructor() { @@ -61,9 +69,9 @@ export default class BanCommand extends BushCommand { public override async exec( message: BushMessage | BushSlashMessage, args: { - user: User | Snowflake; - reason: { duration: number | null; contentWithoutTime: string } | null; - days: number | null; + user: ArgType<'user'> | ArgType<'snowflake'>; + reason: OptionalArgType<'contentWithDuration'>; + days: OptionalArgType<'integer'>; force: boolean; } ) { |