Class MemberImpl
java.lang.Object
com.mewna.catnip.entity.impl.guild.MemberImpl
- All Implemented Interfaces:
Entity
,Member
,GuildEntity
,HasGuild
,HasJoinedAt
,Mentionable
,Permissable
,Snowflake
,Timestamped
,RequiresCatnip
- Since:
- 9/1/18.
- 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 TypeMethodDescriptionavatarHash
(String avatarHash) static MemberImpl.MemberImplBuilder
builder()
catnip()
Returns the catnip instance associated with this entity.void
boolean
long
The id of the guild this entity is from.guildIdAsLong
(long guildIdAsLong) int
hashCode()
long
idAsLong()
The ID of this snowflake, as a long.idAsLong
(long idAsLong) joinedAt()
When the user joined the server last.nick()
The user's nickname in this guild.When the user last used their Nitro Boost on this guild.premiumSince
(String premiumSince) roleIds()
The ids of the user's roles in this guild.toString()
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, 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, 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
-
MemberImpl
public MemberImpl() -
MemberImpl
-
-
Method Details
-
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.
-
catnip
- Specified by:
catnip
in interfaceRequiresCatnip
-
hashCode
public int hashCode() -
equals
-
toString
-
builder
-
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. -
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.
-
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. -
avatarHash
- Specified by:
avatarHash
in interfaceMember
- Returns:
- The hash of the user's per-guild avatar.
-
idAsLong
- Returns:
this
.
-
guildIdAsLong
- Returns:
this
.
-
nick
- Returns:
this
.
-
roleIds
- Returns:
this
.
-
joinedAt
- Returns:
this
.
-
avatarHash
- Returns:
this
.
-