-
Notifications
You must be signed in to change notification settings - Fork 5
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
Extra exception handling to catch interrupted errors #26
Conversation
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.
Has to be duplicated for editMessage
, this also does not compile
jda4/src/main/java/me/scarsz/jdaappender/ChannelLoggingHandler.java
Outdated
Show resolved
Hide resolved
jda4/src/main/java/me/scarsz/jdaappender/ChannelLoggingHandler.java
Outdated
Show resolved
Hide resolved
….java Co-authored-by: Henri Schubin <[email protected]>
Still doesn't compile on my end but that might be because my dev environment is messed up. |
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.
See in-line comments.
The exception handling matches on both these places that could be extracted to a method but not required
JDA5 module should also match these changes
} | ||
return currentMessage; |
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.
Please throw here as it did previously and only return when a interrupt is hit
} | ||
return currentMessage; |
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.
Please throw here as it did previously and only return when a interrupt is hit
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.
some nitpicks
jda4/src/main/java/me/scarsz/jdaappender/ChannelLoggingHandler.java
Outdated
Show resolved
Hide resolved
jda4/src/main/java/me/scarsz/jdaappender/ChannelLoggingHandler.java
Outdated
Show resolved
Hide resolved
jda4/src/main/java/me/scarsz/jdaappender/ChannelLoggingHandler.java
Outdated
Show resolved
Hide resolved
Co-authored-by: granny <[email protected]>
Co-authored-by: granny <[email protected]>
Co-authored-by: granny <[email protected]>
No description provided.