Package net.dv8tion.jda.api.entities
Interface Channel
- All Superinterfaces:
Formattable,IMentionable,ISnowflake
- All Known Subinterfaces:
AudioChannel,BaseGuildMessageChannel,Category,GuildChannel,GuildMessageChannel,ICategorizableChannel,ICopyableChannel,IInviteContainer,IMemberContainer,IPermissionContainer,IPositionableChannel,IThreadContainer,MessageChannel,NewsChannel,PrivateChannel,StageChannel,StoreChannel,TextChannel,ThreadChannel,VoiceChannel
Abstract Channel interface for all
ChannelTypes.-
Method Summary
Modifier and TypeMethodDescriptiondelete()TODO-v5: Revisit these docs Deletes this Channel.default voiddefault StringRetrieve a Mention for this Entity.getJDA()Returns theJDAinstance of this channelgetName()The human readable name of this channel.getType()TheChannelTypefor this channelMethods inherited from interface net.dv8tion.jda.api.entities.ISnowflake
getId, getIdLong, getTimeCreated
-
Method Details
-
getName
The human readable name of this channel.- Returns:
- The name of this channel
-
getType
TheChannelTypefor this channel- Returns:
- The channel type
-
getJDA
Returns theJDAinstance of this channel- Returns:
- the corresponding JDA instance
-
delete
TODO-v5: Revisit these docs Deletes this Channel.Possible ErrorResponses include:
UNKNOWN_CHANNEL
If this channel was already deleted
- Returns:
RestAction
-
getAsMention
Description copied from interface:IMentionableRetrieve a Mention for this Entity. For the publicRole(@everyone), this will return the literal string"@everyone".- Specified by:
getAsMentionin interfaceIMentionable- Returns:
- A resolvable mention.
-
formatTo
- Specified by:
formatToin interfaceFormattable- Specified by:
formatToin interfaceIMentionable
-