aboutsummaryrefslogtreecommitdiff
path: root/src/commands/moderation
diff options
context:
space:
mode:
authorIRONM00N <64110067+IRONM00N@users.noreply.github.com>2022-08-27 22:01:17 -0400
committerIRONM00N <64110067+IRONM00N@users.noreply.github.com>2022-08-27 22:01:17 -0400
commit7fd4bd40f49b07a584b2a2c5e071b6624d9dfe09 (patch)
tree35bd9c8a686daafc7cbfef235afade0ef0c8a104 /src/commands/moderation
parentb72d58843e853b0f260527a3689f76b13946bcb8 (diff)
downloadtanzanite-7fd4bd40f49b07a584b2a2c5e071b6624d9dfe09.tar.gz
tanzanite-7fd4bd40f49b07a584b2a2c5e071b6624d9dfe09.tar.bz2
tanzanite-7fd4bd40f49b07a584b2a2c5e071b6624d9dfe09.zip
node-canvas -> @napi-rs/canvas
ts 4.7.4 -> 4.8.2
Diffstat (limited to 'src/commands/moderation')
-rw-r--r--src/commands/moderation/slowmode.ts2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/commands/moderation/slowmode.ts b/src/commands/moderation/slowmode.ts
index 44ed84f..2e603c6 100644
--- a/src/commands/moderation/slowmode.ts
+++ b/src/commands/moderation/slowmode.ts
@@ -63,6 +63,8 @@ export default class SlowmodeCommand extends BushCommand {
args.channel ??= message.channel!;
+ assert(args.channel);
+
if (
args.channel.type !== ChannelType.GuildText &&
args.channel.type !== ChannelType.GuildNews &&