From 42d2e2bf01b5debd4ecf605297f925ad5da7deb3 Mon Sep 17 00:00:00 2001 From: IRONM00N <64110067+IRONM00N@users.noreply.github.com> Date: Thu, 30 Sep 2021 16:48:07 -0400 Subject: I did this 2 weeks ago idk what I did --- src/listeners/commands/commandBlocked.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/listeners/commands') diff --git a/src/listeners/commands/commandBlocked.ts b/src/listeners/commands/commandBlocked.ts index 3be9d1f..8329c83 100644 --- a/src/listeners/commands/commandBlocked.ts +++ b/src/listeners/commands/commandBlocked.ts @@ -82,7 +82,7 @@ export default class CommandBlockedListener extends BushListener { if (!command) break; const channels = command.restrictedChannels; const names: string[] = []; - channels.forEach((c) => { + channels!.forEach((c) => { names.push(`<#${c}>`); }); const pretty = util.oxford(names, 'and'); @@ -95,7 +95,7 @@ export default class CommandBlockedListener extends BushListener { if (!command) break; const guilds = command.restrictedGuilds; const names: string[] = []; - guilds.forEach((g) => { + guilds!.forEach((g) => { names.push(`\`${client.guilds.cache.get(g)?.name}\``); }); const pretty = util.oxford(names, 'and'); -- cgit