Skip to content

Conversation

myrkvi
Copy link
Contributor

@myrkvi myrkvi commented Aug 12, 2024

Changes AuditLogChange.Key to be AuditLogChangeKey instead of string, and adds constants for its valid values.

This should make it a bit easier to match desired keys, since they will be defined in the library.

@topi314
Copy link
Member

topi314 commented Aug 12, 2024

thanks good timing on this too

@topi314 topi314 merged commit c40b87b into disgoorg:fix/audit-log-changes Aug 12, 2024
topi314 added a commit that referenced this pull request Aug 12, 2024
* fix audit log changes struct

* Make the Audit Log Change Key typed and add constants for its possible values (#377)

* fix: make AuditLogChange.Key typed with constants instead of just a string.

* chore: move type declaration to immediately before related definitions.

---------

Co-authored-by: Vegard Berg <[email protected]>

---------

Co-authored-by: Vegard Berg <[email protected]>
Co-authored-by: Vegard Berg <[email protected]>
apricotbucket28 pushed a commit to apricotbucket28/disgo that referenced this pull request Feb 16, 2025
* fix audit log changes struct

* Make the Audit Log Change Key typed and add constants for its possible values (disgoorg#377)

* fix: make AuditLogChange.Key typed with constants instead of just a string.

* chore: move type declaration to immediately before related definitions.

---------

Co-authored-by: Vegard Berg <[email protected]>

---------

Co-authored-by: Vegard Berg <[email protected]>
Co-authored-by: Vegard Berg <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants