Interface StandardGuildMessageChannelManager<T extends StandardGuildMessageChannel, M extends StandardGuildMessageChannelManager<T,M>>

All Superinterfaces:
AuditableRestAction<Void>, ChannelManager<T,M>, IAgeRestrictedChannelManager<T,M>, ICategorizableChannelManager<T,M>, IPermissionContainerManager<T,M>, IPositionableChannelManager<T,M>, IThreadContainerManager<T,M>, Manager<M>, RestAction<Void>, StandardGuildChannelManager<T,M>
All Known Subinterfaces:
NewsChannelManager, TextChannelManager

public interface StandardGuildMessageChannelManager<T extends StandardGuildMessageChannel, M extends StandardGuildMessageChannelManager<T,M>> extends StandardGuildChannelManager<T,M>, IAgeRestrictedChannelManager<T,M>, IThreadContainerManager<T,M>
Manager providing functionality common for all StandardGuildMessageChannels.

Example

manager.setName("help")
       .setTopic("Java is to Javascript as ham is to hamster")
       .queue();
manager.reset(ChannelManager.PARENT | ChannelManager.NAME)
       .setTopic("nsfw-commits")
       .setNSFW(true)
       .queue();
See Also:
  • Method Details

    • setTopic

      @Nonnull @CheckReturnValue M setTopic(@Nullable String topic)
      Sets the topic of the selected channel.
      Parameters:
      topic - The new topic for the selected channel, null or empty String to reset
      Returns:
      ChannelManager for chaining convenience
      Throws:
      IllegalArgumentException - If the provided topic is greater than 1024 in length.