Skip to content

Commit

Permalink
fix crash when channel is null
Browse files Browse the repository at this point in the history
iminlikewithyou committed Jul 28, 2024

Verified

This commit was signed with the committer’s verified signature.
renovate-bot Mend Renovate
1 parent b87f144 commit 37764f1
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/command-handler.ts
Original file line number Diff line number Diff line change
@@ -368,6 +368,7 @@ export function registerClientAsCommandHandler(client: Client, commandFolder: st
}

function isBroadcastChannel(channel: GuildTextBasedChannel) {
if (!channel) return false;
return channel.name.toLowerCase().includes("bot");
}

0 comments on commit 37764f1

Please sign in to comment.