aboutsummaryrefslogtreecommitdiff
path: root/src/commands/moderation/lockdown.ts
diff options
context:
space:
mode:
authorIRONM00N <64110067+IRONM00N@users.noreply.github.com>2021-07-26 22:53:27 -0400
committerIRONM00N <64110067+IRONM00N@users.noreply.github.com>2021-07-26 22:53:27 -0400
commit7990abdb511eeec2a114b124a3628b10bfefc342 (patch)
treec9cc92439bb0b8385e8fcd82c169fd6f86bb1974 /src/commands/moderation/lockdown.ts
parent80d5b5b11ae261945dc725a0a80115922003afcf (diff)
downloadtanzanite-7990abdb511eeec2a114b124a3628b10bfefc342.tar.gz
tanzanite-7990abdb511eeec2a114b124a3628b10bfefc342.tar.bz2
tanzanite-7990abdb511eeec2a114b124a3628b10bfefc342.zip
chore: add new eslint rule
Diffstat (limited to 'src/commands/moderation/lockdown.ts')
-rw-r--r--src/commands/moderation/lockdown.ts2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/commands/moderation/lockdown.ts b/src/commands/moderation/lockdown.ts
index 4eaeceb..db074b1 100644
--- a/src/commands/moderation/lockdown.ts
+++ b/src/commands/moderation/lockdown.ts
@@ -36,6 +36,8 @@ export default class LockdownCommand extends BushCommand {
if (!all) {
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
const lockdownSuccess = await util.lockdownChannel({
channel: message.channel as BushTextChannel | BushNewsChannel,
moderator: message.author