Class AbstractStandardGuildMessageChannelImpl<T extends AbstractStandardGuildMessageChannelImpl<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>
net.dv8tion.jda.internal.entities.channel.middleman.AbstractStandardGuildMessageChannelImpl<T>
- All Implemented Interfaces:
Comparable<GuildChannel>
,Formattable
,IAgeRestrictedChannel
,ICategorizableChannel
,ICopyableChannel
,IInviteContainer
,IMemberContainer
,IPermissionContainer
,IPositionableChannel
,IThreadContainer
,IWebhookContainer
,Channel
,GuildChannel
,GuildMessageChannel
,MessageChannel
,StandardGuildChannel
,StandardGuildMessageChannel
,ChannelUnion
,GuildChannelUnion
,GuildMessageChannelUnion
,IPermissionContainerUnion
,IThreadContainerUnion
,IWebhookContainerUnion
,MessageChannelUnion
,IDetachableEntity
,IMentionable
,ISnowflake
,IAgeRestrictedChannelMixin<T>
,ICategorizableChannelMixin<T>
,IInviteContainerMixin<T>
,IPermissionContainerMixin<T>
,IPositionableChannelMixin<T>
,IThreadContainerMixin<T>
,ITopicChannelMixin<T>
,IWebhookContainerMixin<T>
,ChannelMixin<T>
,GuildChannelMixin<T>
,GuildMessageChannelMixin<T>
,MessageChannelMixin<T>
,StandardGuildChannelMixin<T>
,StandardGuildMessageChannelMixin<T>
,IDetachableEntityMixin
- Direct Known Subclasses:
DetachedNewsChannelImpl
,DetachedTextChannelImpl
,NewsChannelImpl
,TextChannelImpl
public abstract class AbstractStandardGuildMessageChannelImpl<T extends AbstractStandardGuildMessageChannelImpl<T>>
extends AbstractStandardGuildChannelImpl<T>
implements StandardGuildMessageChannelMixin<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
Fields inherited from interface net.dv8tion.jda.api.entities.channel.middleman.StandardGuildMessageChannel
MAX_TOPIC_LENGTH
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionint
The defaultslowmode
for thread channels that is copied on thread creation.long
The id for the most recent message sent in this current MessageChannel.getTopic()
The topic set for this channel.boolean
isNSFW()
Whether this channel is considered as age-restricted, also known as NSFW (Not-Safe-For-Work)setDefaultThreadSlowmode
(int defaultThreadSlowmode) setLatestMessageIdLong
(long latestMessageId) setNSFW
(boolean nsfw) 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, 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.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.ICategorizableChannel
getManager, 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.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, 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, getThreadChannels
Methods inherited from interface net.dv8tion.jda.internal.entities.channel.mixin.attribute.IThreadContainerMixin
createThreadChannel, createThreadChannel, retrieveArchivedPrivateJoinedThreadChannels, retrieveArchivedPrivateThreadChannels, retrieveArchivedPublicThreadChannels
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.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, 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, 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
createCopy, createCopy, getManager
Methods inherited from interface net.dv8tion.jda.internal.entities.channel.mixin.middleman.StandardGuildMessageChannelMixin
canTalk
-
Constructor Details
-
AbstractStandardGuildMessageChannelImpl
-
-
Method Details
-
getTopic
Description copied from interface:StandardGuildMessageChannel
The topic set for this channel.
If no topic has been set, this returns null.- Specified by:
getTopic
in interfaceITopicChannelMixin<T extends AbstractStandardGuildMessageChannelImpl<T>>
- Specified by:
getTopic
in interfaceStandardGuildMessageChannel
- Returns:
- Possibly-null String containing the topic of this channel.
-
isNSFW
public boolean isNSFW()Description copied from interface:IAgeRestrictedChannel
Whether this channel is considered as age-restricted, also known as NSFW (Not-Safe-For-Work)- Specified by:
isNSFW
in interfaceIAgeRestrictedChannel
- Returns:
- True, If this channel is age-restricted by the official Discord Client
-
getLatestMessageIdLong
public long getLatestMessageIdLong()Description copied from interface:MessageChannel
The id for the most recent message sent in this current MessageChannel.This value is updated on each
MessageReceivedEvent
and the value might point to an already deleted message since the value is not cleared when the message is deleted, so callingMessageChannel.retrieveMessageById(long)
with this id can result in anUNKNOWN_MESSAGE
error- Specified by:
getLatestMessageIdLong
in interfaceMessageChannel
- Returns:
- The most recent message's id or 0 if no messages are present
-
getDefaultThreadSlowmode
public int getDefaultThreadSlowmode()Description copied from interface:IThreadContainer
The defaultslowmode
for thread channels that is copied on thread creation.
Users have to wait this amount of seconds before sending another message to the same thread.- Specified by:
getDefaultThreadSlowmode
in interfaceIThreadContainer
- Returns:
- The default slowmode seconds for new threads, or
0
if unset
-
setTopic
- Specified by:
setTopic
in interfaceITopicChannelMixin<T extends AbstractStandardGuildMessageChannelImpl<T>>
-
setNSFW
- Specified by:
setNSFW
in interfaceIAgeRestrictedChannelMixin<T extends AbstractStandardGuildMessageChannelImpl<T>>
-
setLatestMessageIdLong
- Specified by:
setLatestMessageIdLong
in interfaceMessageChannelMixin<T extends AbstractStandardGuildMessageChannelImpl<T>>
-
setDefaultThreadSlowmode
- Specified by:
setDefaultThreadSlowmode
in interfaceIThreadContainerMixin<T extends AbstractStandardGuildMessageChannelImpl<T>>
-