From 478952d9ebe4094c7d9dddb726c3b9860c176e77 Mon Sep 17 00:00:00 2001 From: ITOH <72305210+itohatweb@users.noreply.github.com> Date: Sat, 1 May 2021 23:36:59 +0200 Subject: [PATCH] fix(helpers/messages): sendMessage add new thread types to channel type check --- src/helpers/messages/send_message.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/helpers/messages/send_message.ts b/src/helpers/messages/send_message.ts index 716d079d5..b05d5d424 100644 --- a/src/helpers/messages/send_message.ts +++ b/src/helpers/messages/send_message.ts @@ -29,6 +29,9 @@ export async function sendMessage( DiscordChannelTypes.Dm, DiscordChannelTypes.GuildNews, DiscordChannelTypes.GuildText, + DiscordChannelTypes.GuildPublicThread, + DiscordChannelTypes.GuildPivateThread, + DiscordChannelTypes.GuildNewsThread, ].includes(channel.type) ) { throw new Error(Errors.CHANNEL_NOT_TEXT_BASED);