Interface PrivateChannelEvent
-
- All Superinterfaces:
ChannelEvent,Event
- All Known Subinterfaces:
PrivateChannelCreateEvent,PrivateChannelDeleteEvent
public interface PrivateChannelEvent extends ChannelEvent
A private channel event.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description PrivateChannelgetChannel()Gets the channel of the event.default java.util.Optional<User>getRecipient()Gets the recipient of the private channel of the event.
-
-
-
Method Detail
-
getChannel
PrivateChannel getChannel()
Description copied from interface:ChannelEventGets the channel of the event.- Specified by:
getChannelin interfaceChannelEvent- Returns:
- The channel of the event.
-
getRecipient
default java.util.Optional<User> getRecipient()
Gets the recipient of the private channel of the event. A private channel always consists of yourself and one other user. The user may be missing as discord doesn't always send the required information.- Returns:
- The recipient of the private channel of the event.
- See Also:
PrivateChannel.getRecipient()
-
-