Interface GuildChannel
- All Superinterfaces:
Channel
,Comparable<GuildChannel>
,Formattable
,IMentionable
,ISnowflake
- All Known Subinterfaces:
AudioChannel
,AudioChannelUnion
,Category
,DefaultGuildChannelUnion
,ForumChannel
,GuildChannelUnion
,GuildMessageChannel
,GuildMessageChannelUnion
,IAgeRestrictedChannel
,ICategorizableChannel
,ICopyableChannel
,IInviteContainer
,IMemberContainer
,IPermissionContainer
,IPermissionContainerUnion
,IPositionableChannel
,IPostContainer
,ISlowmodeChannel
,IThreadContainer
,IThreadContainerUnion
,IWebhookContainer
,IWebhookContainerUnion
,MediaChannel
,NewsChannel
,StageChannel
,StandardGuildChannel
,StandardGuildMessageChannel
,TextChannel
,ThreadChannel
,VoiceChannel
Represents a
Guild
channel.- See Also:
-
Field Summary
Fields inherited from interface net.dv8tion.jda.api.entities.channel.Channel
MAX_NAME_LENGTH
-
Method Summary
Modifier and TypeMethodDescriptiondelete()
Deletes this GuildChannel.getGuild()
Returns theGuild
that this GuildChannel is part of.default String
Returns the jump-to URL for this channel.ChannelManager
<?, ?> Returns theChannelManager
for this GuildChannel.The channel containing the permissions relevant to this channel.Methods inherited from interface net.dv8tion.jda.api.entities.channel.Channel
formatTo, getAsMention, getFlags, getJDA, getName, getType
Methods inherited from interface java.lang.Comparable
compareTo
Methods inherited from interface net.dv8tion.jda.api.entities.ISnowflake
getId, getIdLong, getTimeCreated
-
Field Details
-
JUMP_URL
Template forgetJumpUrl()
.- See Also:
-
-
Method Details
-
getGuild
Returns theGuild
that this GuildChannel is part of.- Returns:
- Never-null
Guild
that this GuildChannel is part of.
-
getManager
Returns theChannelManager
for this GuildChannel.
In the ChannelManager, you can modify the name, topic and position of this GuildChannel. You modify multiple fields in one request by chaining setters before callingRestAction.queue()
.- Returns:
- The ChannelManager of this GuildChannel
- Throws:
InsufficientPermissionException
- If the currently logged in account does not havePermission.MANAGE_CHANNEL
-
delete
Deletes this GuildChannel.Possible ErrorResponses include:
UNKNOWN_CHANNEL
If this channel was already deletedMISSING_PERMISSIONS
The send request was attempted after the account lostPermission.MANAGE_CHANNEL
in the channel.MISSING_ACCESS
If we were removed from the Guild
- Specified by:
delete
in interfaceChannel
- Returns:
AuditableRestAction
- Throws:
InsufficientPermissionException
- if the currently logged in account doesn't haveMANAGE_CHANNEL
for the channel.
-
getPermissionContainer
The channel containing the permissions relevant to this channel.This is usually the same channel, but for threads the parent channel is used instead.
- Returns:
- The permission container
-
getJumpUrl
Returns the jump-to URL for this channel. Clicking this URL in the Discord client will cause the client to jump to the specified channel.- Returns:
- A String representing the jump-to URL for the channel.
-