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.
- See Also:
-
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 AbstractThreadCreateAction
getGuild, getType, setAutoArchiveDuration, setName, setSlowmodeMethods inherited from interface FluentRestAction
addCheck, deadline, setCheck, timeoutMethods inherited from interface MessageCreateRequest
addComponents, addComponents, addComponents, addContent, addEmbeds, addEmbeds, addFiles, addFiles, applyData, applyEditData, applyMessage, getAttachments, getPoll, setPoll, setSuppressedNotifications, setTTS, setVoiceMessageMethods inherited from interface MessageData
getAllowedMentions, getComponents, getComponentTree, getContent, getEmbeds, getMentionedRoles, getMentionedUsers, isMentionRepliedUser, isSuppressEmbeds, isUsingComponentsV2Methods inherited from interface MessageRequest
mention, mention, mentionRepliedUser, mentionRoles, mentionRoles, mentionRoles, mentionUsers, mentionUsers, mentionUsers, setAllowedMentions, setComponents, setComponents, setComponents, setContent, setEmbeds, setEmbeds, setFiles, setFiles, setSuppressEmbeds, useComponentsV2, useComponentsV2Methods inherited from interface 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:
-