Skip to content

filter out audit log entries in moderation log earlier - #465

Merged
MoonTM-GIT merged 1 commit into
Java-Discord:mainfrom
danthe1st:fix-modlog-exception
Jan 26, 2024
Merged

MoonTM-GIT merged 1 commit into
Java-Discord:mainfrom
danthe1st:fix-modlog-exception

Conversation

@danthe1st

Copy link
Copy Markdown
Member

The target ID of the audit log is not always a user ID leading to exceptions when used with retrieveUserById in DiscordModerationLogListener.

This PR filters out unneeded audit log events in the implicit moderation log introduced in #457 before calling retrieveUserById.

@danthe1st
danthe1st requested a review from a team as a code owner December 31, 2023 10:38
@MoonTM-GIT
MoonTM-GIT merged commit 075f12e into Java-Discord:main Jan 26, 2024
@danthe1st
danthe1st deleted the fix-modlog-exception branch January 26, 2024 20:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants