Package net.dv8tion.jda.core.entities
Interface PrivateChannel
-
- All Superinterfaces:
CallableChannel
,java.util.Formattable
,IFakeable
,ISnowflake
,MessageChannel
public interface PrivateChannel extends MessageChannel, CallableChannel, IFakeable
Represents the connection used for direct messaging.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description RestAction<java.lang.Void>
close()
Closes a PrivateChannel.JDA
getJDA()
Returns theJDA
instance of this PrivateChannelUser
getUser()
TheUser
that thisPrivateChannel
communicates with.-
Methods inherited from interface net.dv8tion.jda.client.entities.CallableChannel
getCurrentCall, startCall
-
Methods inherited from interface net.dv8tion.jda.core.entities.ISnowflake
getCreationTime, getId, getIdLong
-
Methods inherited from interface net.dv8tion.jda.core.entities.MessageChannel
addReactionById, addReactionById, addReactionById, addReactionById, deleteMessageById, deleteMessageById, editMessageById, editMessageById, editMessageById, editMessageById, editMessageById, editMessageById, editMessageFormatById, editMessageFormatById, formatTo, getHistory, getHistoryAfter, getHistoryAfter, getHistoryAfter, getHistoryAround, getHistoryAround, getHistoryAround, getHistoryBefore, getHistoryBefore, getHistoryBefore, getIterableHistory, getLatestMessageId, getLatestMessageIdLong, getMessageById, getMessageById, getName, getPinnedMessages, getType, hasLatestMessage, pinMessageById, pinMessageById, purgeMessages, purgeMessages, purgeMessagesById, purgeMessagesById, purgeMessagesById, removeReactionById, removeReactionById, removeReactionById, removeReactionById, sendFile, sendFile, sendFile, sendFile, sendFile, sendFile, sendFile, sendFile, sendMessage, sendMessage, sendMessage, sendMessageFormat, sendTyping, unpinMessageById, unpinMessageById
-
-
-
-
Method Detail
-
getUser
User getUser()
TheUser
that thisPrivateChannel
communicates with.- Returns:
- A non-null
User
.
-
getJDA
JDA getJDA()
Returns theJDA
instance of this PrivateChannel- Specified by:
getJDA
in interfaceMessageChannel
- Returns:
- the corresponding JDA instance
-
close
@CheckReturnValue RestAction<java.lang.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
-
-