diff options
Diffstat (limited to 'src/commands/moderation/_lockdown.ts')
-rw-r--r-- | src/commands/moderation/_lockdown.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/commands/moderation/_lockdown.ts b/src/commands/moderation/_lockdown.ts index 32dbd5b..b7bf4b2 100644 --- a/src/commands/moderation/_lockdown.ts +++ b/src/commands/moderation/_lockdown.ts @@ -35,7 +35,7 @@ export default class LockdownCommand extends BushCommand { public override async exec(message: BushMessage | BushSlashMessage, { all }: { all: boolean }): Promise<unknown> { return await message.util.reply('no'); if (!all) { - if (!['GUILD_TEXT', 'GUILD_NEWS'].includes(message.channel.type)) + if (!['GUILD_TEXT', 'GUILD_NEWS'].includes(message.channel!.type)) return message.util.reply(`${util.emojis.error} You can only lock down text and announcement channels.`); // eslint-disable-next-line @typescript-eslint/no-unused-vars |