-
-
Notifications
You must be signed in to change notification settings - Fork 301
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
Auditlog cleanup and update #1586
Auditlog cleanup and update #1586
Conversation
i have not implemented a new type for the new actionTypes because i didnt know if we want to continue with this monster method |
The editorconfig is against using var. Should i replace it in all methods i clean up? its used everywhere |
please do, and if you can, also run other format rules like file-scoped namespaces |
@akiraveliara should i enforce all editorconfig warnings or only those which only affects files i already have changes in? |
There are several naming rules broken but they also make changes in DiscordClient.cs |
only in files you touch for now, so as to avoid huge merge conflicts |
ok i got it |
Now its a huge PR for a minor change ^^ |
you can always make the PR extend to more audit log functionality if you want (: |
but seriously, that's fine. it'll be a little annoying when it comes to reverting commits, but eh |
My plan is to implement the missing auditlogtypes. I will see what I can do after that |
…full rewrite of Guild#GetAuditLogsAsync
…sing into AuditLogParser
may close #1569 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
more documentation required, but other than that LGTM
I haven't had a chance to check it yet, but I can look at it later. |
xml docs on the new methods or anything else? I have those in mind |
yes, xmldocs |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm, will wait for preliminary test results before merging - if you want to split the types off into their own files, feel free
currently working on it |
Should be ready now |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Missing change keys: DiscordAuditLogAutoModerationRuleEntry:
DiscordAuditLogIntegrationEntry:
DiscordAuditLogThreadEventEntry:
|
once the change keys are added we can merge this as far as i'm concerned |
should be ready to merge |
Summary
I started to cleanup the GetAuditLogs method on DiscordGuild and updated the AuditLogActionType Enum
Notes
Feel free to give me feedback and point out additional methods i can cleanup in this scope. I thought about rewriting other auditlog related sections but i dont know entirely how it works
Tasks