aboutsummaryrefslogtreecommitdiff
path: root/src/commands/moderation/mute.ts
diff options
context:
space:
mode:
Diffstat (limited to 'src/commands/moderation/mute.ts')
-rw-r--r--src/commands/moderation/mute.ts4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/commands/moderation/mute.ts b/src/commands/moderation/mute.ts
index c7091b3..2c0a1e8 100644
--- a/src/commands/moderation/mute.ts
+++ b/src/commands/moderation/mute.ts
@@ -1,4 +1,4 @@
-import { AllowedMentions, BushCommand, Moderation, type BushMessage, type BushSlashMessage, type BushUser } from '#lib';
+import { AllowedMentions, ArgType, BushCommand, Moderation, type BushMessage, type BushSlashMessage } from '#lib';
export default class MuteCommand extends BushCommand {
public constructor() {
@@ -47,7 +47,7 @@ export default class MuteCommand extends BushCommand {
public override async exec(
message: BushMessage | BushSlashMessage,
- args: { user: BushUser; reason?: { duration: number | null; contentWithoutTime: string } | string; force: boolean }
+ args: { user: ArgType<'user'>; reason?: ArgType<'contentWithDuration'> | string; force: boolean }
) {
const reason: { duration: number | null; contentWithoutTime: string | null } = args.reason
? typeof args.reason === 'string'