Class AbstractStandardGuildChannelImpl<T extends AbstractStandardGuildChannelImpl<T>>
java.lang.Object
net.dv8tion.jda.internal.entities.channel.AbstractChannelImpl<T>
net.dv8tion.jda.internal.entities.channel.middleman.AbstractGuildChannelImpl<T>
net.dv8tion.jda.internal.entities.channel.middleman.AbstractStandardGuildChannelImpl<T>
- All Implemented Interfaces:
Comparable<GuildChannel>
,Formattable
,ICategorizableChannel
,ICopyableChannel
,IInviteContainer
,IMemberContainer
,IPermissionContainer
,IPositionableChannel
,Channel
,GuildChannel
,StandardGuildChannel
,ChannelUnion
,GuildChannelUnion
,IPermissionContainerUnion
,IDetachableEntity
,IMentionable
,ISnowflake
,ICategorizableChannelMixin<T>
,IInviteContainerMixin<T>
,IPermissionContainerMixin<T>
,IPositionableChannelMixin<T>
,ChannelMixin<T>
,GuildChannelMixin<T>
,StandardGuildChannelMixin<T>
,IDetachableEntityMixin
- Direct Known Subclasses:
AbstractStandardGuildMessageChannelImpl
,DetachedStageChannelImpl
,DetachedVoiceChannelImpl
,StageChannelImpl
,VoiceChannelImpl
public abstract class AbstractStandardGuildChannelImpl<T extends AbstractStandardGuildChannelImpl<T>>
extends AbstractGuildChannelImpl<T>
implements StandardGuildChannelMixin<T>
-
Field Summary
Fields inherited from interface net.dv8tion.jda.api.entities.channel.Channel
MAX_NAME_LENGTH
Fields inherited from interface net.dv8tion.jda.api.entities.channel.middleman.GuildChannel
JUMP_URL
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionlong
Get the snowflake of theCategory
that contains this channel.gnu.trove.map.TLongObjectMap
<PermissionOverride> int
The actual position of theGuildChannel
as stored and given by Discord.setParentCategory
(long parentCategoryId) setPosition
(int position) Methods inherited from class net.dv8tion.jda.internal.entities.channel.middleman.AbstractGuildChannelImpl
compareTo, getGuild
Methods inherited from class net.dv8tion.jda.internal.entities.channel.AbstractChannelImpl
asAudioChannel, asCategory, asForumChannel, asGroupChannel, asGuildChannel, asGuildMessageChannel, asMediaChannel, asMessageChannel, asNewsChannel, asPrivateChannel, asStageChannel, asStandardGuildChannel, asStandardGuildMessageChannel, asTextChannel, asThreadChannel, asThreadContainer, asVoiceChannel, getIdLong, getJDA, getName, setName, toString
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface net.dv8tion.jda.api.entities.channel.Channel
formatTo, getAsMention, getFlags, getJDA, getName, getType
Methods inherited from interface net.dv8tion.jda.internal.entities.channel.mixin.ChannelMixin
delete, setName
Methods inherited from interface net.dv8tion.jda.api.entities.channel.unions.ChannelUnion
asAudioChannel, asCategory, asForumChannel, asGroupChannel, asGuildChannel, asGuildMessageChannel, asMediaChannel, asMessageChannel, asNewsChannel, asPrivateChannel, asStageChannel, asStandardGuildChannel, asStandardGuildMessageChannel, asTextChannel, asThreadChannel, asThreadContainer, asVoiceChannel
Methods inherited from interface java.lang.Comparable
compareTo
Methods inherited from interface net.dv8tion.jda.api.entities.channel.middleman.GuildChannel
getGuild, getJumpUrl
Methods inherited from interface net.dv8tion.jda.internal.entities.channel.mixin.middleman.GuildChannelMixin
checkCanAccess, checkCanManage, checkPermission, checkPermission, delete, hasPermission
Methods inherited from interface net.dv8tion.jda.api.entities.channel.unions.GuildChannelUnion
asAudioChannel, asCategory, asForumChannel, asGuildMessageChannel, asMediaChannel, asNewsChannel, asStageChannel, asStandardGuildChannel, asStandardGuildMessageChannel, asTextChannel, asThreadChannel, asThreadContainer, asVoiceChannel
Methods inherited from interface net.dv8tion.jda.api.entities.channel.attribute.ICategorizableChannel
getManager, getParentCategory, getParentCategoryId, getPositionInCategory
Methods inherited from interface net.dv8tion.jda.internal.entities.channel.mixin.attribute.ICategorizableChannelMixin
isSynced
Methods inherited from interface net.dv8tion.jda.api.entities.detached.IDetachableEntity
isDetached
Methods inherited from interface net.dv8tion.jda.internal.entities.detached.mixin.IDetachableEntityMixin
checkAttached, detachedException, detachedRequiresChannelException
Methods inherited from interface net.dv8tion.jda.internal.entities.channel.mixin.attribute.IInviteContainerMixin
createInvite, retrieveInvites
Methods inherited from interface net.dv8tion.jda.api.entities.channel.attribute.IMemberContainer
getMembers
Methods inherited from interface net.dv8tion.jda.api.entities.channel.attribute.IPermissionContainer
getMemberPermissionOverrides, getRolePermissionOverrides
Methods inherited from interface net.dv8tion.jda.internal.entities.channel.mixin.attribute.IPermissionContainerMixin
getPermissionContainer, getPermissionOverride, getPermissionOverrides, upsertPermissionOverride
Methods inherited from interface net.dv8tion.jda.api.entities.channel.unions.IPermissionContainerUnion
asAudioChannel, asCategory, asForumChannel, asGuildMessageChannel, asNewsChannel, asStageChannel, asStandardGuildChannel, asStandardGuildMessageChannel, asTextChannel, asThreadContainer, asVoiceChannel
Methods inherited from interface net.dv8tion.jda.api.entities.channel.attribute.IPositionableChannel
getPosition
Methods inherited from interface net.dv8tion.jda.api.entities.ISnowflake
getId, getIdLong, getTimeCreated
Methods inherited from interface net.dv8tion.jda.api.entities.channel.middleman.StandardGuildChannel
createCopy, createCopy, getManager
-
Constructor Details
-
AbstractStandardGuildChannelImpl
-
-
Method Details
-
getParentCategoryIdLong
public long getParentCategoryIdLong()Description copied from interface:ICategorizableChannel
Get the snowflake of theCategory
that contains this channel.This will return
0
if this channel doesn't have a parent category.- Specified by:
getParentCategoryIdLong
in interfaceICategorizableChannel
- Returns:
- The Discord ID snowflake of the parent channel as a long.
-
getPositionRaw
public int getPositionRaw()Description copied from interface:IPositionableChannel
The actual position of theGuildChannel
as stored and given by Discord.Channel positions are actually based on a pairing of the creation time (as stored in the snowflake id) and the position. If 2 or more channels share the same position then they are sorted based on their creation date. The more recent a channel was created, the lower it is in the hierarchy. This is handled by
IPositionableChannel.getPosition()
and it is most likely the method you want. If, for some reason, you want the actual position of the channel then this method will give you that value.- Specified by:
getPositionRaw
in interfaceIPositionableChannel
- Returns:
- The true, Discord stored, position of the
GuildChannel
.
-
getPermissionOverrideMap
- Specified by:
getPermissionOverrideMap
in interfaceIPermissionContainerMixin<T extends AbstractStandardGuildChannelImpl<T>>
-
setParentCategory
- Specified by:
setParentCategory
in interfaceICategorizableChannelMixin<T extends AbstractStandardGuildChannelImpl<T>>
-
setPosition
- Specified by:
setPosition
in interfaceIPositionableChannelMixin<T extends AbstractStandardGuildChannelImpl<T>>
-