Interface DMChannel

All Superinterfaces:
Channel, Entity, HasOwner, MessageChannel, RequiresCatnip, Snowflake, Timestamped
All Known Subinterfaces:
GroupDMChannel, UserDMChannel
All Known Implementing Classes:
GroupDMChannelImpl, UserDMChannelImpl

public interface DMChannel extends MessageChannel, HasOwner
A DM channel. May be a group DM or a single user DM.
Since:
9/12/18
Author:
natanbc
  • Method Details

    • isDM

      @CheckReturnValue default boolean isDM()
      Specified by:
      isDM in interface Channel
      Returns:
      Whether or not this channel is a DM; see Channel.isUserDM() and Channel.isGroupDM() for more.
    • isGuild

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

      @CheckReturnValue default boolean isText()
      Specified by:
      isText in interface Channel
      Returns:
      Whether or not this channel is a text 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.