Class TextChannelImpl
java.lang.Object
net.dv8tion.jda.internal.entities.channel.AbstractChannelImpl<TextChannelImpl>
net.dv8tion.jda.internal.entities.channel.middleman.AbstractGuildChannelImpl<TextChannelImpl>
net.dv8tion.jda.internal.entities.channel.middleman.AbstractStandardGuildChannelImpl<TextChannelImpl>
net.dv8tion.jda.internal.entities.channel.middleman.AbstractStandardGuildMessageChannelImpl<TextChannelImpl>
net.dv8tion.jda.internal.entities.channel.concrete.TextChannelImpl
- All Implemented Interfaces:
Comparable<GuildChannel>
,Formattable
,IAgeRestrictedChannel
,ICategorizableChannel
,ICopyableChannel
,IInviteContainer
,IMemberContainer
,IPermissionContainer
,IPositionableChannel
,ISlowmodeChannel
,IThreadContainer
,IWebhookContainer
,Channel
,TextChannel
,GuildChannel
,GuildMessageChannel
,MessageChannel
,StandardGuildChannel
,StandardGuildMessageChannel
,ChannelUnion
,DefaultGuildChannelUnion
,GuildChannelUnion
,GuildMessageChannelUnion
,IPermissionContainerUnion
,IThreadContainerUnion
,IWebhookContainerUnion
,MessageChannelUnion
,IDetachableEntity
,IMentionable
,ISnowflake
,IAgeRestrictedChannelMixin<TextChannelImpl>
,ICategorizableChannelMixin<TextChannelImpl>
,IInviteContainerMixin<TextChannelImpl>
,IPermissionContainerMixin<TextChannelImpl>
,IPositionableChannelMixin<TextChannelImpl>
,ISlowmodeChannelMixin<TextChannelImpl>
,IThreadContainerMixin<TextChannelImpl>
,ITopicChannelMixin<TextChannelImpl>
,IWebhookContainerMixin<TextChannelImpl>
,ChannelMixin<TextChannelImpl>
,TextChannelMixin<TextChannelImpl>
,GuildChannelMixin<TextChannelImpl>
,GuildMessageChannelMixin<TextChannelImpl>
,MessageChannelMixin<TextChannelImpl>
,StandardGuildChannelMixin<TextChannelImpl>
,StandardGuildMessageChannelMixin<TextChannelImpl>
,IDetachableEntityMixin
public class TextChannelImpl
extends AbstractStandardGuildMessageChannelImpl<TextChannelImpl>
implements TextChannel, DefaultGuildChannelUnion, TextChannelMixin<TextChannelImpl>
-
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
Fields inherited from interface net.dv8tion.jda.api.entities.channel.attribute.ISlowmodeChannel
MAX_SLOWMODE
Fields inherited from interface net.dv8tion.jda.api.entities.channel.middleman.StandardGuildMessageChannel
MAX_TOPIC_LENGTH
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetGuild()
Returns theGuild
that this GuildChannel is part of.Returns theChannelManager
for this GuildChannel.A List of allMembers
that are in this GuildChannel
ForTextChannels
, this returns all Members with thePermission.VIEW_CHANNEL
Permission.int
The slowmode set for this channel.getType()
TheChannelType
for this channelboolean
Whether this entity is detached.setSlowmode
(int slowmode) Methods inherited from class net.dv8tion.jda.internal.entities.channel.middleman.AbstractStandardGuildMessageChannelImpl
getDefaultThreadSlowmode, getLatestMessageIdLong, getTopic, isNSFW, setDefaultThreadSlowmode, setLatestMessageIdLong, setNSFW, setTopic
Methods inherited from class net.dv8tion.jda.internal.entities.channel.middleman.AbstractStandardGuildChannelImpl
getParentCategoryIdLong, getPermissionOverrideMap, getPositionRaw, setParentCategory, setPosition
Methods inherited from class net.dv8tion.jda.internal.entities.channel.middleman.AbstractGuildChannelImpl
compareTo
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
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.unions.DefaultGuildChannelUnion
asNewsChannel, asStandardGuildMessageChannel, asTextChannel, asThreadContainer
Methods inherited from interface net.dv8tion.jda.api.entities.channel.middleman.GuildChannel
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.middleman.GuildMessageChannel
canTalk, clearReactionsById, clearReactionsById, deleteMessages, removeReactionById, sendStickers
Methods inherited from interface net.dv8tion.jda.internal.entities.channel.mixin.middleman.GuildMessageChannelMixin
canDeleteOtherUsersMessages, checkCanAddReactions, checkCanControlMessagePins, checkCanRemoveReactions, checkCanSendFiles, checkCanSendMessage, checkCanSendMessageEmbeds, checkCanViewHistory, clearReactionsById, clearReactionsById, deleteMessagesByIds, removeReactionById, sendStickers
Methods inherited from interface net.dv8tion.jda.api.entities.channel.unions.GuildMessageChannelUnion
asAudioChannel, asNewsChannel, asStageChannel, asStandardGuildChannel, asStandardGuildMessageChannel, asTextChannel, asThreadChannel, asThreadContainer, asVoiceChannel
Methods inherited from interface net.dv8tion.jda.api.entities.channel.attribute.IAgeRestrictedChannel
isNSFW
Methods inherited from interface net.dv8tion.jda.internal.entities.channel.mixin.attribute.IAgeRestrictedChannelMixin
setNSFW
Methods inherited from interface net.dv8tion.jda.api.entities.channel.attribute.ICategorizableChannel
getParentCategory, getParentCategoryId, getParentCategoryIdLong, getPositionInCategory
Methods inherited from interface net.dv8tion.jda.internal.entities.channel.mixin.attribute.ICategorizableChannelMixin
isSynced, setParentCategory
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.IPermissionContainer
getMemberPermissionOverrides, getRolePermissionOverrides
Methods inherited from interface net.dv8tion.jda.internal.entities.channel.mixin.attribute.IPermissionContainerMixin
getPermissionContainer, getPermissionOverride, getPermissionOverrideMap, 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, getPositionRaw
Methods inherited from interface net.dv8tion.jda.internal.entities.channel.mixin.attribute.IPositionableChannelMixin
setPosition
Methods inherited from interface net.dv8tion.jda.api.entities.ISnowflake
getId, getIdLong, getTimeCreated
Methods inherited from interface net.dv8tion.jda.api.entities.channel.attribute.IThreadContainer
createThreadChannel, createThreadChannel, getDefaultThreadSlowmode, getThreadChannels
Methods inherited from interface net.dv8tion.jda.internal.entities.channel.mixin.attribute.IThreadContainerMixin
createThreadChannel, createThreadChannel, retrieveArchivedPrivateJoinedThreadChannels, retrieveArchivedPrivateThreadChannels, retrieveArchivedPublicThreadChannels, setDefaultThreadSlowmode
Methods inherited from interface net.dv8tion.jda.api.entities.channel.unions.IThreadContainerUnion
asForumChannel, asGuildMessageChannel, asMediaChannel, asNewsChannel, asStandardGuildChannel, asStandardGuildMessageChannel, asTextChannel
Methods inherited from interface net.dv8tion.jda.internal.entities.channel.mixin.attribute.ITopicChannelMixin
getTopic, setTopic
Methods inherited from interface net.dv8tion.jda.internal.entities.channel.mixin.attribute.IWebhookContainerMixin
createWebhook, deleteWebhookById, retrieveWebhooks
Methods inherited from interface net.dv8tion.jda.api.entities.channel.unions.IWebhookContainerUnion
asAudioChannel, asForumChannel, asGuildMessageChannel, asMediaChannel, asNewsChannel, asStageChannel, asStandardGuildChannel, asStandardGuildMessageChannel, asTextChannel, asThreadContainer, asVoiceChannel
Methods inherited from interface net.dv8tion.jda.api.entities.channel.middleman.MessageChannel
addReactionById, deleteMessageById, editMessageAttachmentsById, editMessageAttachmentsById, editMessageAttachmentsById, editMessageById, editMessageById, editMessageComponentsById, editMessageComponentsById, editMessageComponentsById, editMessageComponentsById, editMessageComponentsById, editMessageEmbedsById, editMessageEmbedsById, editMessageEmbedsById, editMessageFormatById, editMessageFormatById, endPollById, endPollById, getHistoryAfter, getHistoryAfter, getHistoryAround, getHistoryAround, getHistoryBefore, getHistoryBefore, getLatestMessageId, getLatestMessageIdLong, pinMessageById, purgeMessages, purgeMessagesById, purgeMessagesById, removeReactionById, retrieveMessageById, retrievePollVotersById, retrievePollVotersById, retrieveReactionUsersById, retrieveReactionUsersById, retrieveReactionUsersById, sendFiles, sendMessageComponents, sendMessageComponents, sendMessageFormat, unpinMessageById
Methods inherited from interface net.dv8tion.jda.internal.entities.channel.mixin.middleman.MessageChannelMixin
addReactionById, bulkDeleteMessages, deleteMessageById, editMessageAttachmentsById, editMessageById, editMessageById, editMessageComponentsById, editMessageEmbedsById, getHistory, getHistoryAfter, getHistoryAround, getHistoryBefore, getHistoryFromBeginning, getIterableHistory, pinMessageById, purgeMessages, purgeMessagesById, removeReactionById, retrieveMessageById, retrievePinnedMessages, retrieveReactionUsersById, sendFiles, sendMessage, sendMessage, sendMessageComponents, sendMessageEmbeds, sendMessageEmbeds, sendMessagePoll, sendTyping, setLatestMessageIdLong, unpinMessageById
Methods inherited from interface net.dv8tion.jda.api.entities.channel.unions.MessageChannelUnion
asAudioChannel, asGroupChannel, asGuildMessageChannel, asNewsChannel, asPrivateChannel, asStageChannel, asTextChannel, asThreadChannel, asThreadContainer, asVoiceChannel
Methods inherited from interface net.dv8tion.jda.api.entities.channel.middleman.StandardGuildMessageChannel
getTopic
Methods inherited from interface net.dv8tion.jda.internal.entities.channel.mixin.middleman.StandardGuildMessageChannelMixin
canTalk
Methods inherited from interface net.dv8tion.jda.api.entities.channel.concrete.TextChannel
createCopy
Methods inherited from interface net.dv8tion.jda.internal.entities.channel.mixin.concrete.TextChannelMixin
createCopy
-
Constructor Details
-
TextChannelImpl
-
-
Method Details
-
isDetached
public boolean isDetached()Description copied from interface:IDetachableEntity
Whether this entity is detached.If this returns
true
, this entity cannot be retrieved, will never be updated, and most methods that would otherwise return aRestAction
will throw aDetachedEntityException
instead.- Specified by:
isDetached
in interfaceIDetachableEntity
- Returns:
True
, if the entity is detached
-
getGuild
Description copied from interface:GuildChannel
Returns theGuild
that this GuildChannel is part of.- Specified by:
getGuild
in interfaceGuildChannel
- Overrides:
getGuild
in classAbstractGuildChannelImpl<TextChannelImpl>
- Returns:
- Never-null
Guild
that this GuildChannel is part of.
-
getType
Description copied from interface:Channel
TheChannelType
for this channel -
getMembers
Description copied from interface:IMemberContainer
A List of allMembers
that are in this GuildChannel
ForTextChannels
, this returns all Members with thePermission.VIEW_CHANNEL
Permission.
ForVoiceChannels
, this returns all Members that joined that VoiceChannel.
ForCategories
, this returns all Members who are in its child channels.- Specified by:
getMembers
in interfaceIMemberContainer
- Returns:
- An immutable List of
Members
that are in this GuildChannel.
-
getSlowmode
public int getSlowmode()Description copied from interface:ISlowmodeChannel
The slowmode set for this channel.
If slowmode is set, this returns anint
between 1 and 21600.
Otherwise, if no slowmode is set, this returns0
.Note bots are unaffected by this.
HavingMESSAGE_MANAGE
orMANAGE_CHANNEL
permission also grants immunity to slowmode.Special case
ForumChannels
use this to limit how many posts a user can create. The client refers to this as the post slowmode.- Specified by:
getSlowmode
in interfaceISlowmodeChannel
- Returns:
- The slowmode for this channel, between 1 and 21600, or
0
if no slowmode is set.
-
getManager
Description copied from interface:GuildChannel
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()
.- Specified by:
getManager
in interfaceGuildChannel
- Specified by:
getManager
in interfaceICategorizableChannel
- Specified by:
getManager
in interfaceIPermissionContainer
- Specified by:
getManager
in interfaceIPositionableChannel
- Specified by:
getManager
in interfaceISlowmodeChannel
- Specified by:
getManager
in interfaceStandardGuildChannel
- Specified by:
getManager
in interfaceStandardGuildMessageChannel
- Specified by:
getManager
in interfaceTextChannel
- Returns:
- The ChannelManager of this GuildChannel
- See Also:
-
setSlowmode
- Specified by:
setSlowmode
in interfaceISlowmodeChannelMixin<TextChannelImpl>
-