mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-09 16:13:31 +01:00
Fix GuildDelete typing stopping (#1098)
* whoops * ugh * Update GuildDelete.js
This commit is contained in:
committed by
Schuyler Cebulskie
parent
d10ca8e7ba
commit
8c220e76ec
@@ -12,7 +12,9 @@ class GuildDeleteAction extends Action {
|
||||
|
||||
let guild = client.guilds.get(data.id);
|
||||
if (guild) {
|
||||
for (const channel of guild.channels.values()) channel.stopTyping(true);
|
||||
for (const channel of guild.channels.values()) {
|
||||
if (channel.type === 'text') channel.stopTyping(true);
|
||||
}
|
||||
|
||||
if (guild.available && data.unavailable) {
|
||||
// guild is unavailable
|
||||
|
||||
Reference in New Issue
Block a user