aboutsummaryrefslogtreecommitdiff
path: root/src/commands/moderation/block.ts
diff options
context:
space:
mode:
authorIRONM00N <64110067+IRONM00N@users.noreply.github.com>2022-05-25 17:06:02 -0400
committerIRONM00N <64110067+IRONM00N@users.noreply.github.com>2022-05-25 17:06:02 -0400
commit210678c5f4391b4f5959bd2664d38a0222cbdbe3 (patch)
tree6123ab4c74f3aef1aefee5583ed9a7d0fcc8bc79 /src/commands/moderation/block.ts
parent59ea06a2f010ad7503e4f7b7a1894485d37a416e (diff)
downloadtanzanite-210678c5f4391b4f5959bd2664d38a0222cbdbe3.tar.gz
tanzanite-210678c5f4391b4f5959bd2664d38a0222cbdbe3.tar.bz2
tanzanite-210678c5f4391b4f5959bd2664d38a0222cbdbe3.zip
feat: add command locking
Diffstat (limited to 'src/commands/moderation/block.ts')
-rw-r--r--src/commands/moderation/block.ts3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/commands/moderation/block.ts b/src/commands/moderation/block.ts
index e6f7849..554ef2b 100644
--- a/src/commands/moderation/block.ts
+++ b/src/commands/moderation/block.ts
@@ -52,7 +52,8 @@ export default class BlockCommand extends BushCommand {
slash: true,
channel: 'guild',
clientPermissions: (m) => util.clientSendAndPermCheck(m, [PermissionFlagsBits.ManageChannels]),
- userPermissions: (m) => util.userGuildPermCheck(m, [PermissionFlagsBits.ManageMessages])
+ userPermissions: (m) => util.userGuildPermCheck(m, [PermissionFlagsBits.ManageMessages]),
+ lock: 'channel'
});
}