From 886c21223ec63f6a938ee4665ddcd8fdfff64a24 Mon Sep 17 00:00:00 2001 From: SpaceEEC Date: Wed, 18 Jul 2018 11:38:59 +0200 Subject: [PATCH] fix(GuildAuditLogs): default to PartialGuildChannel if channel deleted (#2605) --- src/structures/GuildAuditLogs.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/structures/GuildAuditLogs.js b/src/structures/GuildAuditLogs.js index 0d1821d97..be86fcf92 100644 --- a/src/structures/GuildAuditLogs.js +++ b/src/structures/GuildAuditLogs.js @@ -336,7 +336,7 @@ class GuildAuditLogsEntry { id: data.target_id, guild, }); - changes.channel = guild.channels.get(changes.channel_id); + changes.channel = { id: changes.channel_id }; this.target = new Invite(guild.client, changes); } else if (targetType === Targets.MESSAGE) { this.target = guild.client.users.get(data.target_id);