Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add IPostContainerManager#setTopic #2666

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -112,4 +112,20 @@ public interface IPostContainerManager<T extends IPostContainer, M extends IPost
@Nonnull
@CheckReturnValue
M setDefaultSortOrder(@Nonnull SortOrder sortOrder);

/**
* Sets the <b><u>topic</u></b> of the selected {@link IPostContainer channel}.
*
* @param topic
* The new topic for the selected channel,
* {@code null} or empty String to reset
*
* @throws IllegalArgumentException
* If the provided topic is greater than {@value IPostContainer#MAX_POST_CONTAINER_TOPIC_LENGTH} in length.
*
* @return ChannelManager for chaining convenience
*/
@Nonnull
@CheckReturnValue
M setTopic(@Nullable String topic);
}
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,6 @@ public interface StandardGuildMessageChannelManager<T extends StandardGuildMessa
*
* @throws IllegalArgumentException
* If the provided topic is greater than {@value StandardGuildMessageChannel#MAX_TOPIC_LENGTH} in length.
* For {@link net.dv8tion.jda.api.entities.channel.concrete.ForumChannel ForumChannels},
* this limit is {@value net.dv8tion.jda.api.entities.channel.concrete.ForumChannel#MAX_FORUM_TOPIC_LENGTH} instead.
*
* @return ChannelManager for chaining convenience
*/
Expand Down
Loading