Package net.dv8tion.jda.api.entities
Interface SelfUser
- All Superinterfaces:
Formattable
,IMentionable
,ISnowflake
,User
,UserSnowflake
Represents the currently logged in account.
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from interface net.dv8tion.jda.api.entities.User
User.Profile, User.UserFlag
-
Field Summary
Fields inherited from interface net.dv8tion.jda.api.entities.User
AVATAR_URL, BANNER_URL, DEFAULT_ACCENT_COLOR_RAW, DEFAULT_AVATAR_URL, USER_TAG
-
Method Summary
Modifier and TypeMethodDescriptionlong
Returns the maximum size for files that can be uploaded with this account.default String
The associated application id for the bot account.long
The associated application id for the bot account.TheAccountManager
for the currently logged in account.boolean
If true, this account is protected by Multi-Factor authorization.boolean
The status of this account's verification.Methods inherited from interface net.dv8tion.jda.api.entities.IMentionable
formatTo, getAsMention
Methods inherited from interface net.dv8tion.jda.api.entities.ISnowflake
getId, getIdLong, getTimeCreated
Methods inherited from interface net.dv8tion.jda.api.entities.User
getAsTag, getAvatar, getAvatarId, getAvatarUrl, getDiscriminator, getEffectiveAvatar, getEffectiveAvatarUrl, getEffectiveName, getFlags, getFlagsRaw, getGlobalName, getJDA, getMutualGuilds, getName, hasPrivateChannel, isBot, isSystem, openPrivateChannel, retrieveProfile
Methods inherited from interface net.dv8tion.jda.api.entities.UserSnowflake
getDefaultAvatar, getDefaultAvatarId, getDefaultAvatarUrl
-
Method Details
-
getApplicationIdLong
long getApplicationIdLong()The associated application id for the bot account.
For most bots this is identical to the user id.- Returns:
- The application id
-
getApplicationId
The associated application id for the bot account.
For most bots this is identical to the user id.- Returns:
- The application id
-
isVerified
boolean isVerified()The status of this account's verification. (Have you accepted the verification email)- Returns:
- True, if this account is verified.
-
isMfaEnabled
boolean isMfaEnabled()If true, this account is protected by Multi-Factor authorization.
If this is a Client account, then this describes the MFA status of the Client account.
If this is a Bot account, then this describes the MFA status of the Client account that owns this Bot.- Returns:
- True, if this account has MFA protecting it.
-
getAllowedFileSize
long getAllowedFileSize()Returns the maximum size for files that can be uploaded with this account.
Returns 26214400 for bots.- Returns:
- The maximum size for files that can be uploaded with this account
- See Also:
-
getManager
TheAccountManager
for the currently logged in account.
This can be used to atomically set account fields (like avatar/username) You modify multiple fields in one request by chaining setters before callingRestAction.queue()
.- Returns:
- An AccountManager instance for the current account
-