Package discord4j.core.object.command
Class ResolvedMember
java.lang.Object
discord4j.core.object.command.ResolvedMember
- All Implemented Interfaces:
DiscordObject
A Discord member that was resolved in a command.
-
Constructor Summary
ConstructorDescriptionResolvedMember
(GatewayDiscordClient gateway, discord4j.discordjson.json.ResolvedMemberData data, discord4j.discordjson.json.UserData user, long guildId) Constructs aResolvedMember
with an associatedGatewayDiscordClient
and Discord data. -
Method Summary
Modifier and TypeMethodDescriptionRetrieves the fullMember
instance corresponding to this resolved member.asFullMember
(EntityRetrievalStrategy retrievalStrategy) Retrieves the fullMember
instance corresponding to this resolved member, using the given retrieval strategy.Returns theGatewayDiscordClient
that created this object.discord4j.discordjson.json.ResolvedMemberData
getData()
Returns the raw data as represented by Discord.Gets the name that is displayed in client.Gets the total permissions of the member in the channel, including overwrites.Gets the ID of the guild this user is associated to.getId()
Gets the ID of this member.Gets when the user joined the guild.Gets the user's guild nickname (if one is set).Deprecated.This type of ping has been deprecated in the Discord API.Gets when the user started boosting the server, if present.Gets the user's guild roles' IDs.toString()
-
Constructor Details
-
ResolvedMember
public ResolvedMember(GatewayDiscordClient gateway, discord4j.discordjson.json.ResolvedMemberData data, discord4j.discordjson.json.UserData user, long guildId) Constructs aResolvedMember
with an associatedGatewayDiscordClient
and Discord data.- Parameters:
gateway
- TheGatewayDiscordClient
associated to this object, must be non-null.data
- The raw data as represented by Discord, must be non-null.user
- The raw user associated to the member, must be non-null.guildId
- the ID of the guild the user is member of
-
-
Method Details
-
getData
public discord4j.discordjson.json.ResolvedMemberData getData()Returns the raw data as represented by Discord.- Returns:
- the raw data
-
getId
Gets the ID of this member.- Returns:
- The ID of this member;
-
getGuildId
Gets the ID of the guild this user is associated to.- Returns:
- The ID of the guild this user is associated to.
-
getRoleIds
Gets the user's guild roles' IDs.- Returns:
- The user's guild roles' IDs.
-
getJoinTime
Gets when the user joined the guild.- Returns:
- When the user joined the guild.
-
getPremiumTime
Gets when the user started boosting the server, if present.- Returns:
- When the user started boosting the server, if present.
-
getDisplayName
Gets the name that is displayed in client.- Returns:
- The name that is displayed in client.
-
getNickname
Gets the user's guild nickname (if one is set).- Returns:
- The user's guild nickname (if one is set).
-
getNicknameMention
Deprecated.This type of ping has been deprecated in the Discord API.Gets the raw nickname mention. This is the format utilized to directly mention another user (assuming the user exists in context of the mention).- Returns:
- The raw nickname mention.
-
getEffectivePermissions
Gets the total permissions of the member in the channel, including overwrites.- Returns:
- The permissions of the member.
-
asFullMember
Retrieves the fullMember
instance corresponding to this resolved member. -
asFullMember
Retrieves the fullMember
instance corresponding to this resolved member, using the given retrieval strategy. -
getClient
Description copied from interface:DiscordObject
Returns theGatewayDiscordClient
that created this object. Methods in it are exclusively based on the entity cache orStore
in use. Refer to callinggetClient().rest()
to access aDiscordClient
that is capable of requesting entities directly from the REST API.- Specified by:
getClient
in interfaceDiscordObject
- Returns:
- The
GatewayDiscordClient
associated to this object.
-
toString
-