Skip to content

Commit

Permalink
Add IPostContainerManager#setTopic (#2666)
Browse files Browse the repository at this point in the history
  • Loading branch information
freya022 authored Apr 28, 2024
1 parent e82f4dc commit 6f7189f
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 2 deletions.
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

0 comments on commit 6f7189f

Please sign in to comment.