You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Which application or package is this feature request for?
discord.js
Feature
When using the <GuildAuditLogsEntry>#changes inside Events.GuildAuditLogEntryCreate, the interface AuditLogChange does not have any type safety as it merges all the properties in the union of APIAuditLogChange together, which prevents the discriminator property AuditLogChange#key from narrowing down the types .
Which application or package is this feature request for?
discord.js
Feature
When using the
<GuildAuditLogsEntry>#changes
insideEvents.GuildAuditLogEntryCreate
, theinterface AuditLogChange
does not have any type safety as it merges all the properties in the union ofAPIAuditLogChange
together, which prevents the discriminator propertyAuditLogChange#key
from narrowing down the types .Ideal solution or implementation
Replace
interface AuditLogChange
with the below:See typescript playground example
Alternative solutions or implementations
No response
Other context
No response
The text was updated successfully, but these errors were encountered: