diff options
author | IRONM00N <64110067+IRONM00N@users.noreply.github.com> | 2022-05-31 19:39:45 -0400 |
---|---|---|
committer | IRONM00N <64110067+IRONM00N@users.noreply.github.com> | 2022-05-31 19:39:45 -0400 |
commit | cb6368c78c2c3cdc0ff63be600750e81f815ce8c (patch) | |
tree | 0a1bb327f808e6a192277eaff9e8e1ab04ba20ee /src/commands/moderation/lockdown.ts | |
parent | 302461fcd34de14eccd4d18664af3fc12a37b4d5 (diff) | |
download | tanzanite-cb6368c78c2c3cdc0ff63be600750e81f815ce8c.tar.gz tanzanite-cb6368c78c2c3cdc0ff63be600750e81f815ce8c.tar.bz2 tanzanite-cb6368c78c2c3cdc0ff63be600750e81f815ce8c.zip |
refactoring & changes to steal command
Diffstat (limited to 'src/commands/moderation/lockdown.ts')
-rw-r--r-- | src/commands/moderation/lockdown.ts | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/commands/moderation/lockdown.ts b/src/commands/moderation/lockdown.ts index 36f3240..f298ec9 100644 --- a/src/commands/moderation/lockdown.ts +++ b/src/commands/moderation/lockdown.ts @@ -8,7 +8,7 @@ import { type ArgType, type BushMessage, type BushSlashMessage, - type OptionalArgType + type OptArgType } from '#lib'; import assert from 'assert'; import { ApplicationCommandOptionType, ChannelType, Collection, PermissionFlagsBits } from 'discord.js'; @@ -67,8 +67,8 @@ export default class LockdownCommand extends BushCommand { public override async exec( message: BushMessage | BushSlashMessage, args: { - channel: OptionalArgType<'textChannel'> | OptionalArgType<'newsChannel'> | OptionalArgType<'threadChannel'>; - reason: OptionalArgType<'string'>; + channel: OptArgType<'textChannel'> | OptArgType<'newsChannel'> | OptArgType<'threadChannel'>; + reason: OptArgType<'string'>; all: ArgType<'boolean'>; } ) { @@ -78,8 +78,8 @@ export default class LockdownCommand extends BushCommand { public static async lockdownOrUnlockdown( message: BushMessage | BushSlashMessage, args: { - channel: OptionalArgType<'textChannel'> | OptionalArgType<'newsChannel'> | OptionalArgType<'threadChannel'>; - reason: OptionalArgType<'string'>; + channel: OptArgType<'textChannel'> | OptArgType<'newsChannel'> | OptArgType<'threadChannel'>; + reason: OptArgType<'string'>; all: ArgType<'boolean'>; }, action: 'lockdown' | 'unlockdown' |