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 )