Interface PrivateChannelEvent

    • Method Detail

      • getRecipient

        default 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()