Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Merged
merged 2 commits into from
Aug 12, 2024

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.

discord/audit_log.go Outdated Show resolved Hide resolved
@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
3 checks passed
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 <mail@myrkvi.com>

---------

Co-authored-by: Vegard Berg <162863+myrkvi@users.noreply.github.com>
Co-authored-by: Vegard Berg <mail@myrkvi.com>
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