-
Notifications
You must be signed in to change notification settings - Fork 2
Open
Description
Hello there!
This message is not really an issue as is, but a question related how I could return a boolean (true/false) from the onSuccess/onFailure methods to an external class.
I created this class: DiscordNotifier. Inside this class there is a method: notify where your code to send a message via webhook to a channel lives. At the topmost line of this method notify, a boolean wasOK is declared.
When the message was successfully sent, the method onSuccess is executed. I wonder how to set "true" to that boolean wasOK declared at the topmost of the notify method.
At a glance:

Do you know about I am asking for?
If so, how could I do it?
Thanks in advance. Regards.
Metadata
Metadata
Assignees
Labels
No labels