Fix GuildDelete typing stopping (#1098)

* whoops

* ugh

* Update GuildDelete.js
This commit is contained in:
Gus Caplan
2017-01-14 22:33:26 -06:00
committed by Schuyler Cebulskie
parent d10ca8e7ba
commit 8c220e76ec

View File

@@ -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