Interface IPostContainerMixin<T extends IPostContainerMixin<T>>
- All Superinterfaces:
Channel
,ChannelMixin<T>
,ChannelUnion
,Comparable<GuildChannel>
,Formattable
,GuildChannel
,GuildChannelMixin<T>
,GuildChannelUnion
,IDetachableEntity
,IDetachableEntityMixin
,IMentionable
,IPermissionContainer
,IPostContainer
,ISnowflake
,IThreadContainer
,IThreadContainerMixin<T>
,IThreadContainerUnion
- All Known Subinterfaces:
ForumChannelMixin<T>
,MediaChannelMixin<T>
- All Known Implementing Classes:
DetachedForumChannelImpl
,DetachedMediaChannelImpl
,ForumChannelImpl
,MediaChannelImpl
public interface IPostContainerMixin<T extends IPostContainerMixin<T>>
extends IPostContainer, IThreadContainerMixin<T>
-
Nested Class Summary
Nested classes/interfaces inherited from interface net.dv8tion.jda.api.entities.channel.attribute.IPostContainer
IPostContainer.SortOrder
-
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.IPostContainer
MAX_POST_CONTAINER_TOPIC_LENGTH, MAX_POST_TAGS
-
Method Summary
Modifier and TypeMethodDescriptiondefault ForumPostAction
createForumPost
(String name, MessageCreateData message) Creates a new forum/media post (thread) in this channel.default ThreadChannelAction
createThreadChannel
(String name) Creates a new publicThreadChannel
with the parent channel being thisIThreadContainer
.default ThreadChannelAction
createThreadChannel
(String name, String messageId) Creates a new, publicThreadChannel
with the parent channel being thisIThreadContainer
.The availableForumTags
for this forum channel.int
int
setDefaultReaction
(DataObject emoji) setDefaultSortOrder
(int defaultSortOrder) setFlags
(int flags) 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
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, getPermissionContainer
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.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.api.entities.channel.attribute.IPermissionContainer
getMemberPermissionOverrides, getPermissionOverride, getPermissionOverrides, getRolePermissionOverrides, upsertPermissionOverride
Methods inherited from interface net.dv8tion.jda.api.entities.channel.attribute.IPostContainer
getAvailableTagById, getAvailableTagById, getAvailableTags, getAvailableTagsByName, getDefaultReaction, getDefaultSortOrder, getManager, getTopic, isTagRequired
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
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
-
Method Details
-
getAvailableTagCache
Description copied from interface:IPostContainer
The availableForumTags
for this forum channel.
Tags are sorted by theirposition
ascending.This requires
CacheFlag.FORUM_TAGS
to be enabled.- Specified by:
getAvailableTagCache
in interfaceIPostContainer
- Returns:
SortedSnowflakeCacheView
ofForumTag
-
createForumPost
@Nonnull default ForumPostAction createForumPost(@Nonnull String name, @Nonnull MessageCreateData message) Description copied from interface:IPostContainer
Creates a new forum/media post (thread) in this channel.Possible
ErrorResponses
include:UNKNOWN_CHANNEL
If the channel was deletedMESSAGE_BLOCKED_BY_AUTOMOD
If this message was blocked by anAutoModRule
MESSAGE_BLOCKED_BY_HARMFUL_LINK_FILTER
If this message was blocked by the harmful link filterREQUEST_ENTITY_TOO_LARGE
If the total sum of uploaded bytes exceeds the guild'supload limit
TITLE_BLOCKED_BY_AUTOMOD
If the forum post name was blocked by anAutoModRule
- Specified by:
createForumPost
in interfaceIPostContainer
- Parameters:
name
- The name of the post (up to 100 characters)message
- The starting message of the post (seeMessageCreateBuilder
)- Returns:
ForumPostAction
-
createThreadChannel
Description copied from interface:IThreadContainer
Creates a new publicThreadChannel
with the parent channel being thisIThreadContainer
.The resulting
ThreadChannel
may be either one of:Possible
ErrorResponses
caused by the returnedRestAction
include the following:MISSING_PERMISSIONS
The channel could not be created due to a permission discrepancyMAX_CHANNELS
The maximum number of channels were exceededErrorResponse.MAX_ACTIVE_THREADS
The maximum number of active threads has been reached, and no more may be created.
- Specified by:
createThreadChannel
in interfaceIThreadContainer
- Parameters:
name
- The name of the new ThreadChannel (up to 100 characters)- Returns:
- A specific
ThreadChannelAction
that may be used to configure the new ThreadChannel before its creation.
-
createThreadChannel
@Nonnull default ThreadChannelAction createThreadChannel(@Nonnull String name, @Nonnull String messageId) Description copied from interface:IThreadContainer
Creates a new, publicThreadChannel
with the parent channel being thisIThreadContainer
.
The starting message will copy the message for the provided id, and will be of typeMessageType.THREAD_STARTER_MESSAGE
.The resulting
ThreadChannel
may be one of:Possible
ErrorResponses
caused by the returnedRestAction
include the following:MISSING_PERMISSIONS
The channel could not be created due to a permission discrepancyMAX_CHANNELS
The maximum number of channels were exceededErrorResponse.THREAD_WITH_THIS_MESSAGE_ALREADY_EXISTS
This message has already been used to create a threadErrorResponse.MAX_ACTIVE_THREADS
The maximum number of active threads has been reached, and no more may be created.
- Specified by:
createThreadChannel
in interfaceIThreadContainer
- Parameters:
name
- The name of the new ThreadChannel (up to 100 characters)messageId
- The ID of the message from which this ThreadChannel will be spawned.- Returns:
- A specific
ThreadChannelAction
that may be used to configure the new ThreadChannel before its creation.
-
setDefaultReaction
-
setDefaultSortOrder
-
setFlags
-
getRawSortOrder
int getRawSortOrder() -
getRawFlags
int getRawFlags()
-