mirror of
https://github.com/danbulant/discord.js
synced 2026-05-27 22:11:53 +00:00
fix(GuildAuditLogs): default to PartialGuildChannel if channel deleted (#2605)
This commit is contained in:
parent
a97b5040e6
commit
886c21223e
1 changed files with 1 additions and 1 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in a new issue