Class ApplicationOwnerImpl
java.lang.Object
com.mewna.catnip.entity.impl.misc.ApplicationOwnerImpl
- All Implemented Interfaces:
Entity
,ApplicationOwner
,Mentionable
,Snowflake
,Timestamped
,RequiresCatnip
,User
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.mewna.catnip.entity.partials.Timestamped
Timestamped.TimestampStyle
-
Constructor Summary
ConstructorDescriptionApplicationOwnerImpl
(Catnip catnip, long idAsLong, String username, String discriminator, String avatar, boolean bot) -
Method Summary
Modifier and TypeMethodDescriptionint
boolean
Whether the user's avatar is animated.avatar()
User's avatar hash.The URL for the user's set avatar.avatarUrl
(ImageOptions options) The URL for the user's set avatar.banner()
boolean
bot()
Whether the user is a bot, or webhook/fake user.bot
(boolean bot) builder()
catnip()
Returns the catnip instance associated with this entity.void
The URL for the default avatar for this user.Discriminator of the user, used to tell Amy#0001 from Amy#0002.discriminator
(String discriminator) The URL for the user's effective avatar, as displayed in the Discord client.effectiveAvatarUrl
(ImageOptions options) The URL for the user's effective avatar, as displayed in the Discord client.boolean
int
hashCode()
long
idAsLong()
The ID of this snowflake, as a long.idAsLong
(long idAsLong) boolean
isTeam()
The public flags on a user's account.toString()
username()
The username of the user.Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
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
Methods inherited from interface com.mewna.catnip.entity.user.User
asMention, createDM, discordTag, effectiveName, presence
-
Constructor Details
-
ApplicationOwnerImpl
public ApplicationOwnerImpl() -
ApplicationOwnerImpl
-
-
Method Details
-
isTeam
public boolean isTeam()- Specified by:
isTeam
in interfaceApplicationOwner
-
catnip
- Specified by:
catnip
in interfaceRequiresCatnip
-
animatedAvatar
@CheckReturnValue public boolean animatedAvatar()Description copied from interface:User
Whether the user's avatar is animated.- Specified by:
animatedAvatar
in interfaceUser
- Returns:
- True if the avatar is animated, false otherwise.
-
defaultAvatarUrl
Description copied from interface:User
The URL for the default avatar for this user.- Specified by:
defaultAvatarUrl
in interfaceUser
- Returns:
- String containing the URL to the default avatar. Never null.
-
avatarUrl
Description copied from interface:User
The URL for the user's set avatar. Can be null if the user has not set an avatar.- Specified by:
avatarUrl
in interfaceUser
- Parameters:
options
-Image Options
.- Returns:
- String containing the URL to their avatar, options considered. Can be null.
- See Also:
-
avatarUrl
Description copied from interface:User
The URL for the user's set avatar. Can be null if the user has not set an avatar. -
effectiveAvatarUrl
Description copied from interface:User
The URL for the user's effective avatar, as displayed in the Discord client.
Convenience method for getting the user's default avatar whenUser.avatarUrl()
is null.- Specified by:
effectiveAvatarUrl
in interfaceUser
- Parameters:
options
-Image Options
.- Returns:
- String containing a URL to their effective avatar, options considered. Never null.
-
effectiveAvatarUrl
Description copied from interface:User
The URL for the user's effective avatar, as displayed in the Discord client.
Convenience method for getting the user's default avatar whenUser.avatarUrl()
is null.- Specified by:
effectiveAvatarUrl
in interfaceUser
- Returns:
- String containing a URL to their effective avatar. Never null.
-
publicFlags
Description copied from interface:User
The public flags on a user's account. Public flags are a currently-undocumented subset of all user flags.- Specified by:
publicFlags
in interfaceUser
- Returns:
- The public flags on a user's account.
-
hashCode
public int hashCode() -
equals
-
toString
-
banner
-
accentColor
public int accentColor()- Specified by:
accentColor
in interfaceUser
- Returns:
- The user's profile accent colour.
-
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. -
username
Description copied from interface:User
The username of the user. -
discriminator
Description copied from interface:User
Discriminator of the user, used to tell Amy#0001 from Amy#0002.- Specified by:
discriminator
in interfaceUser
- Returns:
- 4 digit discriminator as a string. Never null.
-
avatar
Description copied from interface:User
User's avatar hash.
This does not return their avatar URL nor image directly. -
bot
public boolean bot()Description copied from interface:User
Whether the user is a bot, or webhook/fake user. -
idAsLong
- Returns:
this
.
-
username
- Returns:
this
.
-
discriminator
- Returns:
this
.
-
avatar
- Returns:
this
.
-
bot
- Returns:
this
.
-