mirror of
https://github.com/discordeno/discordeno.git
synced 2026-06-16 11:28:15 +00:00
fix(helpers/messages): sendMessage add new thread types to channel type check
This commit is contained in:
@@ -29,6 +29,9 @@ export async function sendMessage(
|
|||||||
DiscordChannelTypes.Dm,
|
DiscordChannelTypes.Dm,
|
||||||
DiscordChannelTypes.GuildNews,
|
DiscordChannelTypes.GuildNews,
|
||||||
DiscordChannelTypes.GuildText,
|
DiscordChannelTypes.GuildText,
|
||||||
|
DiscordChannelTypes.GuildPublicThread,
|
||||||
|
DiscordChannelTypes.GuildPivateThread,
|
||||||
|
DiscordChannelTypes.GuildNewsThread,
|
||||||
].includes(channel.type)
|
].includes(channel.type)
|
||||||
) {
|
) {
|
||||||
throw new Error(Errors.CHANNEL_NOT_TEXT_BASED);
|
throw new Error(Errors.CHANNEL_NOT_TEXT_BASED);
|
||||||
|
|||||||
Reference in New Issue
Block a user