fix(GuildAuditLogs): default to PartialGuildChannel if channel deleted (#2605)

This commit is contained in:
SpaceEEC
2018-07-18 11:38:59 +02:00
committed by GitHub
parent a97b5040e6
commit 886c21223e

View File

@@ -336,7 +336,7 @@ class GuildAuditLogsEntry {
id: data.target_id, id: data.target_id,
guild, guild,
}); });
changes.channel = guild.channels.get(changes.channel_id); changes.channel = { id: changes.channel_id };
this.target = new Invite(guild.client, changes); this.target = new Invite(guild.client, changes);
} else if (targetType === Targets.MESSAGE) { } else if (targetType === Targets.MESSAGE) {
this.target = guild.client.users.get(data.target_id); this.target = guild.client.users.get(data.target_id);