@MightOccurAsync public interface NucleusMailEvent extends Event, Cancellable
Modifier and Type | Method and Description |
---|---|
String |
getMessage()
The message that was sent.
|
User |
getRecipient()
The recipient of the mail.
|
Optional<User> |
getSender()
The sender of the mail.
|
getCause, getContext, getSource
isCancelled, setCancelled
Optional<User> getSender()
Optional.empty()
, this means it was some server process.User getRecipient()
String getMessage()