You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Oct 30, 2022. It is now read-only.
Check for jsr305 annotation @Nonnull on a parameter and if the parameter is annotated with it, but you would give null or an empty Optional to it, either throw an exception or make a debug log statement and just do not call the handler
The text was updated successfully, but these errors were encountered:
Sure it could. This is about convenience.
The lib could do it for you, so it is simpler to use the simple command framework.
Depending on whether an exception is thrown or just a debug statement and the handler not called, you can easily define with this conditions for the command like you can do now with Command.channelMessages and Command.privateMessages, just that you can do it for all the potential parameters.
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Check for jsr305 annotation
@Nonnull
on a parameter and if the parameter is annotated with it, but you would givenull
or an emptyOptional
to it, either throw an exception or make a debug log statement and just do not call the handlerThe text was updated successfully, but these errors were encountered: