From 05ace1ff5706b5ac797433b087a74b9d7babc530 Mon Sep 17 00:00:00 2001 From: Skillz Date: Fri, 4 Sep 2020 16:51:36 -0400 Subject: [PATCH] handle potential refactor --- src/handlers/channel.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/handlers/channel.ts b/src/handlers/channel.ts index 5227cb4bc..162ebe207 100644 --- a/src/handlers/channel.ts +++ b/src/handlers/channel.ts @@ -145,7 +145,7 @@ export async function sendMessage( if (content.mentions) { if (content.mentions.users?.length) { - if (content.mentions.parse.includes("users")) { + if (content.mentions.parse?.includes("users")) { content.mentions.parse = content.mentions.parse.filter((p) => p !== "users" ); @@ -157,7 +157,7 @@ export async function sendMessage( } if (content.mentions.roles?.length) { - if (content.mentions.parse.includes("roles")) { + if (content.mentions.parse?.includes("roles")) { content.mentions.parse = content.mentions.parse.filter((p) => p !== "roles" );