mirror of
https://github.com/danbulant/discord.js
synced 2026-05-25 13:02:38 +00:00
Fix GuildDelete typing stopping (#1098)
* whoops * ugh * Update GuildDelete.js
This commit is contained in:
parent
d10ca8e7ba
commit
8c220e76ec
1 changed files with 3 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue