add threadd types

This commit is contained in:
ITOH
2021-05-04 17:42:31 +02:00
parent 9c3c8c58ac
commit e942aea490
+3
View File
@@ -19,6 +19,9 @@ export async function startTyping(channelId: bigint) {
DiscordChannelTypes.Dm, DiscordChannelTypes.Dm,
DiscordChannelTypes.GuildNews, DiscordChannelTypes.GuildNews,
DiscordChannelTypes.GuildText, DiscordChannelTypes.GuildText,
DiscordChannelTypes.GuildNewsThread,
DiscordChannelTypes.GuildPivateThread,
DiscordChannelTypes.GuildPublicThread,
].includes(channel.type) ].includes(channel.type)
) { ) {
throw new Error(Errors.CHANNEL_NOT_TEXT_BASED); throw new Error(Errors.CHANNEL_NOT_TEXT_BASED);