Enum Class Channel.ChannelType

java.lang.Object
java.lang.Enum<Channel.ChannelType>
com.mewna.catnip.entity.channel.Channel.ChannelType
All Implemented Interfaces:
Serializable, Comparable<Channel.ChannelType>, Constable
Enclosing interface:
Channel

public static enum Channel.ChannelType extends Enum<Channel.ChannelType>
The type of a channel.
  • Enum Constant Details

    • TEXT

      public static final Channel.ChannelType TEXT
      A text channel in a guild.
    • DM

      public static final Channel.ChannelType DM
      A DM with a single user.
    • VOICE

      public static final Channel.ChannelType VOICE
      A voice channel in a guild.
    • GROUP_DM

      public static final Channel.ChannelType GROUP_DM
      A DM with multiple users.
    • CATEGORY

      public static final Channel.ChannelType CATEGORY
      A guild channel category with zero or more child channels.
    • NEWS

      public static final Channel.ChannelType NEWS
      A news channel in a guild. See discordapp/discord-api-docs#881
    • STORE

      public static final Channel.ChannelType STORE
      A store channel in a guild. Used for literally what it sounds like. Requires an application with a valid SKU. Not officially announced, but there is some discussion about it in discordapp/discord-api-docs#881.
    • NEWS_THREAD

      public static final Channel.ChannelType NEWS_THREAD
      A thread in an announcement? channel.
    • PUBLIC_THREAD

      public static final Channel.ChannelType PUBLIC_THREAD
      A public thread.
    • PRIVATE_THREAD

      public static final Channel.ChannelType PRIVATE_THREAD
      A private thread.
    • STAGE

      public static final Channel.ChannelType STAGE
      A stage channel.
  • Method Details

    • values

      public static Channel.ChannelType[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static Channel.ChannelType valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null
    • byKey

      @Nonnull public static Channel.ChannelType byKey(int key)
    • threadableChannelTypes

      public static List<Channel.ChannelType> threadableChannelTypes()
    • key

      public int key()
    • guild

      public boolean guild()