Interface ForumPostAction
- All Superinterfaces:
AbstractThreadCreateAction<ForumPost,,ForumPostAction> FluentRestAction<ForumPost,,ForumPostAction> MessageCreateRequest<ForumPostAction>,MessageData,MessageRequest<ForumPostAction>,RestAction<ForumPost>
public interface ForumPostAction
extends AbstractThreadCreateAction<ForumPost,ForumPostAction>, MessageCreateRequest<ForumPostAction>, FluentRestAction<ForumPost,ForumPostAction>
Extension of
RestAction specifically
designed to create new Forum Post Threads.
On success, this provides a ForumPost object with the starter message
and the thread channel of the post.
-
Method Summary
Modifier and TypeMethodDescriptionTheIPostContainerto create the post insetTags(Collection<? extends ForumTagSnowflake> tags) Configures that tags which should be applied to the new post.default ForumPostActionsetTags(ForumTagSnowflake... tags) Configures that tags which should be applied to the new post.Methods inherited from interface net.dv8tion.jda.api.requests.restaction.AbstractThreadCreateAction
getGuild, getType, setAutoArchiveDuration, setNameMethods inherited from interface net.dv8tion.jda.api.requests.FluentRestAction
addCheck, deadline, setCheck, timeoutMethods inherited from interface net.dv8tion.jda.api.utils.messages.MessageCreateRequest
addActionRow, addActionRow, addComponents, addComponents, addContent, addEmbeds, addEmbeds, addFiles, addFiles, applyData, applyEditData, applyMessage, getAttachments, getPoll, setPoll, setSuppressedNotifications, setTTS, setVoiceMessageMethods inherited from interface net.dv8tion.jda.api.utils.messages.MessageData
getAllowedMentions, getComponents, getContent, getEmbeds, getMentionedRoles, getMentionedUsers, isMentionRepliedUser, isSuppressEmbedsMethods inherited from interface net.dv8tion.jda.api.utils.messages.MessageRequest
mention, mention, mentionRepliedUser, mentionRoles, mentionRoles, mentionRoles, mentionUsers, mentionUsers, mentionUsers, setActionRow, setActionRow, setAllowedMentions, setComponents, setComponents, setContent, setEmbeds, setEmbeds, setFiles, setFiles, setSuppressEmbedsMethods inherited from interface net.dv8tion.jda.api.requests.RestAction
and, and, complete, complete, completeAfter, delay, delay, delay, delay, flatMap, flatMap, getCheck, getJDA, map, mapToResult, onErrorFlatMap, onErrorFlatMap, onErrorMap, onErrorMap, onSuccess, queue, queue, queue, queueAfter, queueAfter, queueAfter, queueAfter, queueAfter, queueAfter, submit, submit, submitAfter, submitAfter, zip
-
Method Details
-
getChannel
TheIPostContainerto create the post in- Returns:
- The
IPostContainer
-
setTags
@Nonnull @CheckReturnValue ForumPostAction setTags(@Nonnull Collection<? extends ForumTagSnowflake> tags) Configures that tags which should be applied to the new post.
Some forums require setting at least one tag.- Parameters:
tags- Up to 5 tags to apply- Returns:
- The current ForumPostAction for chaining convenience
- Throws:
IllegalArgumentException- If null is provided or more than 5 tags are provided, or if at least one isrequiredand none were provided.- See Also:
-
setTags
Configures that tags which should be applied to the new post.
Some forums require setting at least one tag.- Parameters:
tags- Up to 5 tags to apply- Returns:
- The current ForumPostAction for chaining convenience
- Throws:
IllegalArgumentException- If null is provided or more than 5 tags are provided, or if at least one isrequiredand none were provided.- See Also:
-