Package com.mewna.catnip.entity.channel
Interface DMChannel
- All Superinterfaces:
Channel
,Entity
,HasOwner
,MessageChannel
,RequiresCatnip
,Snowflake
,Timestamped
- All Known Subinterfaces:
GroupDMChannel
,UserDMChannel
- All Known Implementing Classes:
GroupDMChannelImpl
,UserDMChannelImpl
A DM channel. May be a group DM or a single user DM.
- Since:
- 9/12/18
- Author:
- natanbc
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.mewna.catnip.entity.channel.Channel
Channel.ChannelType
Nested classes/interfaces inherited from interface com.mewna.catnip.entity.partials.Timestamped
Timestamped.TimestampStyle
-
Method Summary
Methods inherited from interface com.mewna.catnip.entity.channel.Channel
asCategory, asDMChannel, asGroupDMChannel, asGuildChannel, asMessageChannel, asTextChannel, asUserDMChannel, asVoiceChannel, delete, delete, isGroupDM, isGuildMessageChannel, isNews, isStore, isUserDM, type
Methods inherited from interface com.mewna.catnip.entity.partials.HasOwner
owner, ownerId, ownerIdAsLong
Methods inherited from interface com.mewna.catnip.entity.channel.MessageChannel
addReaction, addReaction, bulkRemoveReaction, deleteMessage, deleteMessage, deleteOwnReaction, deleteOwnReaction, deleteUserReaction, deleteUserReaction, editMessage, editMessage, editMessage, fetchMessage, fetchMessages, sendMessage, sendMessage, sendMessage, sendMessage, triggerTypingIndicator
Methods inherited from interface com.mewna.catnip.entity.RequiresCatnip
catnip
Methods inherited from interface com.mewna.catnip.entity.partials.Snowflake
creationTime, creationTimestamp, id, idAsLong
Methods inherited from interface com.mewna.catnip.entity.partials.Timestamped
asDiscordTimestamp, parseTimestamp
-
Method Details
-
isDM
@CheckReturnValue default boolean isDM()- Specified by:
isDM
in interfaceChannel
- Returns:
- Whether or not this channel is a DM; see
Channel.isUserDM()
andChannel.isGroupDM()
for more.
-
isGuild
@CheckReturnValue default boolean isGuild() -
isText
@CheckReturnValue default boolean isText() -
isVoice
@CheckReturnValue default boolean isVoice() -
isCategory
@CheckReturnValue default boolean isCategory()- Specified by:
isCategory
in interfaceChannel
- Returns:
- Whether or not this channel is a category.
-