diff options
author | IRONM00N <64110067+IRONM00N@users.noreply.github.com> | 2021-09-30 16:48:07 -0400 |
---|---|---|
committer | IRONM00N <64110067+IRONM00N@users.noreply.github.com> | 2021-09-30 16:48:07 -0400 |
commit | 42d2e2bf01b5debd4ecf605297f925ad5da7deb3 (patch) | |
tree | daf6678542cd8735f9930086f7a1e76ae6884e4e /src/listeners/commands | |
parent | 4ad90b19851a0853287c45d326a28be535b1607f (diff) | |
download | tanzanite-42d2e2bf01b5debd4ecf605297f925ad5da7deb3.tar.gz tanzanite-42d2e2bf01b5debd4ecf605297f925ad5da7deb3.tar.bz2 tanzanite-42d2e2bf01b5debd4ecf605297f925ad5da7deb3.zip |
I did this 2 weeks ago idk what I did
Diffstat (limited to 'src/listeners/commands')
-rw-r--r-- | src/listeners/commands/commandBlocked.ts | 4 |
1 files changed, 2 insertions, 2 deletions
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'); |