mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-16 03:23:29 +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,
|
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);
|
||||||
|
|||||||
Reference in New Issue
Block a user