Class ThreadCreateMetadata
java.lang.Object
net.dv8tion.jda.api.requests.restaction.ThreadCreateMetadata
Metadata used to create a thread through a
webhook message
.-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionaddTags
(Collection<? extends ForumTagSnowflake> tags) Apply the provided tags to the forum post.addTags
(ForumTagSnowflake... tags) Apply the provided tags to the forum post.The applied tags for the thread / forum post.getName()
The thread name.
-
Constructor Details
-
ThreadCreateMetadata
Create a new thread metadata instance.- Parameters:
name
- The title of the thread (1-100 characters)- Throws:
IllegalArgumentException
- If the provided name is null or not between 1 and 100 characters long
-
-
Method Details
-
addTags
Apply the provided tags to the forum post.- Parameters:
tags
- The tags to apply- Returns:
- The updated metadata instance
- Throws:
IllegalArgumentException
- If null or more than 5 tags are provided
-
addTags
Apply the provided tags to the forum post.- Parameters:
tags
- The tags to apply- Returns:
- The updated metadata instance
- Throws:
IllegalArgumentException
- If null or more than 5 tags are provided
-
getName
The thread name.- Returns:
- The thread name
-
getAppliedTags
The applied tags for the thread / forum post.- Returns:
- The applied tags
-