diff options
Diffstat (limited to 'src/commands/moderation/slowmode.ts')
-rw-r--r-- | src/commands/moderation/slowmode.ts | 2 |
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 && |