diff options
Diffstat (limited to 'src/commands/moderation/unmute.ts')
-rw-r--r-- | src/commands/moderation/unmute.ts | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/commands/moderation/unmute.ts b/src/commands/moderation/unmute.ts index 0c59b1f..d36a5db 100644 --- a/src/commands/moderation/unmute.ts +++ b/src/commands/moderation/unmute.ts @@ -1,11 +1,12 @@ import { AllowedMentions, + ArgType, BushCommand, Moderation, + OptionalArgType, type BushGuildMember, type BushMessage, - type BushSlashMessage, - type BushUser + type BushSlashMessage } from '#lib'; export default class UnmuteCommand extends BushCommand { @@ -55,7 +56,7 @@ export default class UnmuteCommand extends BushCommand { public override async exec( message: BushMessage | BushSlashMessage, - { user, reason, force }: { user: BushUser; reason?: string; force: boolean } + { user, reason, force }: { user: ArgType<'user'>; reason: OptionalArgType<'string'>; force: boolean } ) { const error = util.emojis.error; const member = message.guild!.members.cache.get(user.id) as BushGuildMember; |