mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-12 17:43:30 +01:00
fix: channel type check in actions (#6086)
This commit is contained in:
@@ -15,7 +15,7 @@ class GuildDeleteAction extends Action {
|
||||
let guild = client.guilds.cache.get(data.id);
|
||||
if (guild) {
|
||||
for (const channel of guild.channels.cache.values()) {
|
||||
if (channel.type in TextBasedChannelTypes) channel.stopTyping(true);
|
||||
if (TextBasedChannelTypes.includes(channel.type)) channel.stopTyping(true);
|
||||
}
|
||||
|
||||
if (data.unavailable) {
|
||||
|
||||
Reference in New Issue
Block a user