From c6b71c9beeb077ed19c335cb5dd87c947c12e9be Mon Sep 17 00:00:00 2001 From: Blocks <51055767+Blocksnmore@users.noreply.github.com> Date: Sat, 11 Nov 2023 22:35:48 -0600 Subject: [PATCH] Fix error thrown from webhook channel mention --- src/structures/messageMentions.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/structures/messageMentions.ts b/src/structures/messageMentions.ts index 84c188f9..11894ff4 100644 --- a/src/structures/messageMentions.ts +++ b/src/structures/messageMentions.ts @@ -51,6 +51,9 @@ export class MessageMentions { if (matchChannels !== null) { for (const id of matchChannels) { const parsedID = id.substr(2, id.length - 3) + + if (this.client === undefined) continue + const channel = await this.client.channels.get( parsedID )