Class UnknownChannel
java.lang.Object
discord4j.core.object.entity.channel.UnknownChannel
- All Implemented Interfaces:
DiscordObject
,Channel
,Entity
A
Channel
implementation representing an unsupported or not implemented channel type. Use Channel.getData()
to retrieve entity information and Channel.getRestChannel()
to obtain an instance to perform REST API operations
on this channel.-
Nested Class Summary
Nested classes/interfaces inherited from interface discord4j.core.object.entity.channel.Channel
Channel.Flag, Channel.Type
-
Constructor Summary
ConstructorDescriptionUnknownChannel
(GatewayDiscordClient gateway, discord4j.discordjson.json.ChannelData data) Constructs anUnknownChannel
with an associatedGatewayDiscordClient
and Discord data. -
Method Summary
Modifier and TypeMethodDescriptionfinal boolean
final GatewayDiscordClient
Returns theGatewayDiscordClient
that created this object.final discord4j.discordjson.json.ChannelData
getData()
Gets the raw data as represented by Discord.final RestChannel
Return aRestChannel
handle to execute REST API operations on this entity.final int
hashCode()
toString()
-
Constructor Details
-
UnknownChannel
Constructs anUnknownChannel
with an associatedGatewayDiscordClient
and Discord data.- Parameters:
gateway
- TheGatewayDiscordClient
associated to this object, must be non-null.data
- The raw data as represented by Discord, must be non-null.
-
-
Method Details
-
toString
-
getClient
Description copied from interface:DiscordObject
Returns theGatewayDiscordClient
that created this object. Methods in it are exclusively based on the entity cache orStore
in use. Refer to callinggetClient().rest()
to access aDiscordClient
that is capable of requesting entities directly from the REST API.- Specified by:
getClient
in interfaceDiscordObject
- Returns:
- The
GatewayDiscordClient
associated to this object.
-
getRestChannel
Description copied from interface:Channel
Return aRestChannel
handle to execute REST API operations on this entity.- Specified by:
getRestChannel
in interfaceChannel
-
getData
public final discord4j.discordjson.json.ChannelData getData()Description copied from interface:Channel
Gets the raw data as represented by Discord. -
equals
-
hashCode
public final int hashCode()
-