Skip to content

Assign skeleton object to Target in DiscordAuditLogObjects when the target couldn't be pulled from cache

Created by: Kiritsu

Summary

Right now, if the Target of the AuditLog is null, we have no way to at least have the ID of the Target. When you deal with events such as ChannelDeleted, we have the object, but the, if we try to get the lasts audit log entries in the current guild, the channel, at this moment, is no more in the cache, so we have no way to check if the entry in audit logs were refering to the channel in our event.

Details

I added an ulong TargetId in each DiscordAuditLog object that has a Target value.

Merge request reports

Loading