Class UserDMChannelImpl
java.lang.Object
com.mewna.catnip.entity.impl.channel.UserDMChannelImpl
- All Implemented Interfaces:
Channel
,DMChannel
,MessageChannel
,UserDMChannel
,Entity
,HasOwner
,Snowflake
,Timestamped
,RequiresCatnip
- 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
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuilder()
catnip()
Returns the catnip instance associated with this entity.void
boolean
int
hashCode()
long
idAsLong()
The ID of this snowflake, as a long.idAsLong
(long idAsLong) long
io.reactivex.rxjava3.core.Maybe<User>
toString()
type()
long
userIdAsLong
(long userIdAsLong) Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface com.mewna.catnip.entity.channel.Channel
asCategory, asDMChannel, asGroupDMChannel, asGuildChannel, asMessageChannel, asTextChannel, asUserDMChannel, asVoiceChannel, delete, delete, isGuildMessageChannel, isNews, isStore
Methods inherited from interface com.mewna.catnip.entity.channel.DMChannel
isCategory, isDM, isGuild, isText, isVoice
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.partials.Snowflake
creationTime, creationTimestamp, id
Methods inherited from interface com.mewna.catnip.entity.partials.Timestamped
asDiscordTimestamp, parseTimestamp
Methods inherited from interface com.mewna.catnip.entity.channel.UserDMChannel
isGroupDM, isUserDM, userId
-
Constructor Details
-
UserDMChannelImpl
public UserDMChannelImpl() -
UserDMChannelImpl
-
-
Method Details
-
catnip
- Specified by:
catnip
in interfaceRequiresCatnip
-
hashCode
public int hashCode() -
equals
-
toString
-
recipient
- Specified by:
recipient
in interfaceUserDMChannel
-
ownerIdAsLong
public long ownerIdAsLong()- Specified by:
ownerIdAsLong
in interfaceHasOwner
-
builder
-
type
-
catnip
Description copied from interface:Entity
Returns the catnip instance associated with this entity. -
idAsLong
public long idAsLong()Description copied from interface:Snowflake
The ID of this snowflake, as a long. -
userIdAsLong
public long userIdAsLong()- Specified by:
userIdAsLong
in interfaceUserDMChannel
-
idAsLong
- Returns:
this
.
-
userIdAsLong
- Returns:
this
.
-