Interface TextChannel

All Superinterfaces:
Channel, Entity, GuildChannel, GuildEntity, HasGuild, HasName, HasParentChannel, Mentionable, MessageChannel, Snowflake, Timestamped
All Known Subinterfaces:
NewsChannel, StageChannel, ThreadChannel, VoiceChannel
All Known Implementing Classes:
NewsChannelImpl, StageChannelImpl, TextChannelImpl, ThreadChannelImpl, VoiceChannelImpl

public interface TextChannel extends GuildChannel, MessageChannel, Mentionable
A channel in a guild that can have text messages sent in it.
Since:
9/12/18
Author:
natanbc
  • Method Details

    • topic

      @Nullable @CheckReturnValue String topic()
      The channel's topic. Shown at the top of the channel. May be null.
      Returns:
      The channel's topic.
    • nsfw

      @CheckReturnValue boolean nsfw()
      Returns:
      Whether or not this channel has been marked as nsfw.
    • rateLimitPerUser

      @Nonnegative @CheckReturnValue int rateLimitPerUser()
      The slowmode set on this channel. A value of 0 means no slowmode. Bots are not affected by slowmode.
      Returns:
      The slowmode set on this channel, in seconds.
    • isText

      @CheckReturnValue default boolean isText()
      Specified by:
      isText in interface Channel
      Returns:
      Whether or not this channel is a text channel.
    • isNews

      @CheckReturnValue default boolean isNews()
      Description copied from interface: Channel
      Whether or not this channel is a news channel. See discordapp/discord-api-docs#881.
      Specified by:
      isNews in interface Channel
    • isVoice

      @CheckReturnValue default boolean isVoice()
      Specified by:
      isVoice in interface Channel
      Returns:
      Whether or not this channel is a voice channel.
    • isCategory

      @CheckReturnValue default boolean isCategory()
      Specified by:
      isCategory in interface Channel
      Returns:
      Whether or not this channel is a category.
    • fetchWebhooks

      @Nonnull @CheckReturnValue default io.reactivex.rxjava3.core.Observable<Webhook> fetchWebhooks()
      Fetch all webhooks on this channel.
      Returns:
      A not-null, possibly-empty list of webhooks for this channel.
    • asMention

      @Nonnull @CheckReturnValue default String asMention()
      Specified by:
      asMention in interface Mentionable
      Returns:
      A mention for this channel that can be sent in a message.