Class InteractionMemberImpl
java.lang.Object
com.mewna.catnip.entity.impl.interaction.InteractionMemberImpl
- All Implemented Interfaces:
Entity
,Member
,InteractionMember
,GuildEntity
,HasGuild
,HasJoinedAt
,Mentionable
,Permissable
,Snowflake
,Timestamped
- Since:
- 12/23/20.
- Author:
- amy
-
Nested Class Summary
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.delegate()
long
The id of the guild this entity is from.long
idAsLong()
The ID of this snowflake, as a long.joinedAt()
When the user joined the server last.nick()
The user's nickname in this guild.Returns a list of the entity's permissions.permissions
(Set<Permission> permissions) When the user last used their Nitro Boost on this guild.roleIds()
The ids of the user's roles in this guild.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.mewna.catnip.entity.partials.GuildEntity
guild
Methods inherited from interface com.mewna.catnip.entity.guild.Member
addRole, addRole, addRole, addRole, asMention, avatarUrl, canInteract, canInteract, color, createDM, deaf, effectiveName, hasPermissions, hasPermissions, isOwner, mute, orderedRoles, orderedRoles, permissions, removeRole, removeRole, removeRole, removeRole, roles, user, voiceState
Methods inherited from interface com.mewna.catnip.entity.partials.Permissable
hasPermissions, hasPermissions, permissionsRaw
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
-
InteractionMemberImpl
public InteractionMemberImpl() -
InteractionMemberImpl
-
-
Method Details
-
catnip
Description copied from interface:Entity
Returns the catnip instance associated with this entity. -
nick
Description copied from interface:Member
The user's nickname in this guild. -
roleIds
Description copied from interface:Member
The ids of the user's roles in this guild. -
joinedAt
Description copied from interface:Member
When the user joined the server last.
Members who have joined, left, then rejoined will only have the most recent join exposed.
This may be null under some conditions, ex. a member leaving a guild. In cases like this, catnip will attempt to load the old data from the cache if possible, but it may not work, hence nullability.- Specified by:
joinedAt
in interfaceHasJoinedAt
- Specified by:
joinedAt
in interfaceMember
- Returns:
- The
date and time
the member joined the guild.
-
guildIdAsLong
public long guildIdAsLong()Description copied from interface:HasGuild
The id of the guild this entity is from.- Specified by:
guildIdAsLong
in interfaceHasGuild
- Returns:
- Long representing the guild ID.
-
idAsLong
public long idAsLong()Description copied from interface:Snowflake
The ID of this snowflake, as a long. -
avatarHash
- Specified by:
avatarHash
in interfaceMember
- Returns:
- The hash of the user's per-guild avatar.
-
builder
-
delegate
-
permissions
Description copied from interface:Permissable
Returns a list of the entity's permissions.- Specified by:
permissions
in interfaceInteractionMember
- Specified by:
permissions
in interfaceMember
- Specified by:
permissions
in interfacePermissable
- Returns:
- a list of the entity's permissions
-
delegate
- Returns:
this
.
-
permissions
- Returns:
this
.
-