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

adding scheduled events to audit log #2437

Merged

Conversation

SaculRennorb
Copy link
Contributor

I'll be frank, I just made this because i needed the user and affected_id for ScheduledEvent updates, as the corresponding event does not provide a field of who updated the ScheduledEvent.

Was sad to see that apparently noone added auditLog ids 100-102 (the ones related to ScheduledEvents) and there does not seen to be a generic way of just getting an arbitrary field from those log entries (can't even really do reflection magic because of how the data is set up).

This isn't tested very well and might also still contain some copy paste problems, as well as problems related to me not knowing the inner workings of discord.net, also I didn't bother too much with getting used to style / structures of discord.net. Feel free to reject this if you don't want to put in work, as neither do I. It seems to work, but also I just wanted to have the ids.

@quinchs quinchs added the blocked label Sep 2, 2022
@quinchs quinchs enabled auto-merge (squash) September 2, 2022 21:48
@quinchs quinchs enabled auto-merge (squash) September 2, 2022 21:50
@quinchs
Copy link
Member

quinchs commented Sep 2, 2022

@SaculRennorb please update from dev

@quinchs quinchs merged commit 3dec99f into discord-net:dev Sep 2, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants