Interface PrivateChannel

    • Method Detail

      • getJDA

        @Nonnull
        JDA getJDA()
        Returns the JDA instance of this PrivateChannel
        Specified by:
        getJDA in interface MessageChannel
        Returns:
        the corresponding JDA instance
      • close

        @Nonnull
        @CheckReturnValue
        RestAction<Void> close()
        Closes a PrivateChannel. After being closed successfully the PrivateChannel is removed from the JDA mapping.
        As a note, this does not remove the history of the PrivateChannel. If the channel is reopened the history will still be present.
        Returns:
        RestAction - Type: Void