Class GroupDMChannelImpl
java.lang.Object
com.mewna.catnip.entity.impl.channel.GroupDMChannelImpl
- All Implemented Interfaces:
Channel
,DMChannel
,GroupDMChannel
,MessageChannel
,Entity
,HasApplication
,HasIcon
,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
ConstructorDescriptionGroupDMChannelImpl
(Catnip catnip, long idAsLong, List<User> recipients, String icon, long ownerIdAsLong, long applicationIdAsLong) -
Method Summary
Modifier and TypeMethodDescriptionlong
applicationIdAsLong
(long applicationIdAsLong) builder()
catnip()
Returns the catnip instance associated with this entity.void
boolean
int
hashCode()
icon()
long
idAsLong()
The ID of this snowflake, as a long.idAsLong
(long idAsLong) long
ownerIdAsLong
(long ownerIdAsLong) recipients
(List<User> recipients) toString()
type()
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.GroupDMChannel
iconUrl, isGroupDM, isUserDM, ownerId
Methods inherited from interface com.mewna.catnip.entity.partials.HasApplication
applicationId
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
-
Constructor Details
-
GroupDMChannelImpl
public GroupDMChannelImpl() -
GroupDMChannelImpl
-
-
Method Details
-
catnip
- Specified by:
catnip
in interfaceRequiresCatnip
-
hashCode
public int hashCode() -
equals
-
toString
-
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. -
recipients
- Specified by:
recipients
in interfaceGroupDMChannel
- Returns:
- The list of users in the group DM.
-
icon
-
ownerIdAsLong
public long ownerIdAsLong()- Specified by:
ownerIdAsLong
in interfaceGroupDMChannel
- Specified by:
ownerIdAsLong
in interfaceHasOwner
- Returns:
- The ID of the user who owns the group DM.
-
applicationIdAsLong
public long applicationIdAsLong()- Specified by:
applicationIdAsLong
in interfaceHasApplication
- Returns:
- The id of the application that this entity belongs to.
-
idAsLong
- Returns:
this
.
-
recipients
- Returns:
this
.
-
icon
- Returns:
this
.
-
ownerIdAsLong
- Returns:
this
.
-
applicationIdAsLong
- Returns:
this
.
-