Skip to content

Conversation

@sciwhiz12
Copy link
Collaborator

Removes the exception and functional interface, since their use is entirely avoidable and replaceable with normal Java conventions of return values and Optional.

Uses JDA's message jump URL pattern for robustness, instead of matching only normal (non-canary/PTB) Discord links and using manual string manipulation to obtain the IDs.

Removes the exception and functional interface, since their use is
entirely avoidable and replaceable with normal Java conventions of
return values and Optional.

Uses JDA's message jump URL pattern for robustness, instead of matching
only normal (non-canary/PTB) Discord links and using manual string
manipulation to obtain the IDs.
@sciwhiz12 sciwhiz12 requested a review from Matyrobbrt April 24, 2022 10:02
@Matyrobbrt Matyrobbrt added the java Pull requests that update Java code label Apr 24, 2022
@Matyrobbrt Matyrobbrt self-assigned this Apr 24, 2022
@Matyrobbrt Matyrobbrt added this to the 4.0 milestone Apr 24, 2022
@Matyrobbrt Matyrobbrt merged commit 5390173 into 4.0 Apr 24, 2022
@sciwhiz12 sciwhiz12 deleted the sci/message_utils branch April 24, 2022 10:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement java Pull requests that update Java code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants