mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-09 16:13:31 +01:00
fix(GuildAuditLogs): default to PartialGuildChannel if channel deleted (#2605)
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user