From f5125cb3c340bfff2e5b0714870fdcc8d013e442 Mon Sep 17 00:00:00 2001 From: Miikka <2606411+Dragory@users.noreply.github.com> Date: Thu, 7 Jul 2022 00:49:29 +0300 Subject: [PATCH] Update applyRoleButtons.ts --- backend/src/plugins/RoleButtons/functions/applyRoleButtons.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/src/plugins/RoleButtons/functions/applyRoleButtons.ts b/backend/src/plugins/RoleButtons/functions/applyRoleButtons.ts index bbd290a2..b3e92f43 100644 --- a/backend/src/plugins/RoleButtons/functions/applyRoleButtons.ts +++ b/backend/src/plugins/RoleButtons/functions/applyRoleButtons.ts @@ -55,7 +55,7 @@ export async function applyRoleButtons( } const channel = await pluginData.guild.channels.fetch(configItem.message.channel_id).catch(() => null); - if (!channel || !channel.isText()) { + if (!channel || !channel?.isText()) { pluginData.getPlugin(LogsPlugin).logBotAlert({ body: `Text channel not found for role_buttons/${configItem.name}`, });