-
Nested Class Summary
Nested Classes
-
Constructor Summary
Constructors
ApplicationInfoImpl(Catnip catnip,
long idAsLong,
String icon,
String name,
String description,
List<String> rpcOrigins,
boolean publicBot,
boolean requiresCodeGrant,
ApplicationOwner owner,
Team team,
String summary,
String verifyKey,
long guildIdAsLong,
String primarySkuId,
String slug,
String coverImage,
Set<ApplicationFlag> flags)
-
Method Summary
Returns the catnip instance associated with this entity.
void
If this application is a game sold on Discord, this field will be the
hash of the image on store embeds.
long
The id of the guild this entity is from.
long
The ID of this snowflake, as a long.
If this application is a game sold on Discord, this field will be the id
of the "Game SKU" that is created, if exists.
boolean
boolean
If this application is a game sold on Discord, this field will be the
URL slug that links to the store page.
If this application is a game sold on Discord, this field will be the
summary field for the store page of its primary SKU.
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.HasIcon
iconUrl
-
Constructor Details
-
ApplicationInfoImpl
public ApplicationInfoImpl()
-
ApplicationInfoImpl
public ApplicationInfoImpl(Catnip catnip,
long idAsLong,
String icon,
String name,
String description,
List<String> rpcOrigins,
boolean publicBot,
boolean requiresCodeGrant,
ApplicationOwner owner,
Team team,
String summary,
String verifyKey,
long guildIdAsLong,
String primarySkuId,
String slug,
String coverImage,
Set<ApplicationFlag> flags)
-
Method Details
-
iconUrl
- Specified by:
iconUrl
in interface HasIcon
- Returns:
- The icon's CDN URL, with the specified options applied. Will be
null if
HasIcon.icon()
is null, except in the case of a User
.
-
-
-
catnip
Description copied from interface: Entity
Returns the catnip instance associated with this entity.
- Specified by:
catnip
in interface Entity
- Returns:
- The catnip instance of this entity.
-
idAsLong
public long idAsLong()
The ID of this snowflake, as a long.
- Specified by:
idAsLong
in interface Snowflake
- Returns:
- Long representing the ID.
-
icon
- Specified by:
icon
in interface HasIcon
- Returns:
- The icon's hash. May be null, in cases like a user not setting
an avatar, no guild icon, ...
-
-
-
rpcOrigins
- Specified by:
rpcOrigins
in interface ApplicationInfo
- Returns:
- A non-
null
, possibly-empty list of the application's RPC
origins.
-
publicBot
public boolean publicBot()
- Specified by:
publicBot
in interface ApplicationInfo
- Returns:
- Whether or not the application is a public bot.
-
requiresCodeGrant
public boolean requiresCodeGrant()
- Specified by:
requiresCodeGrant
in interface ApplicationInfo
- Returns:
- Whether or not the application requires a code grant before the
bot can be added.
-
owner
- Specified by:
owner
in interface ApplicationInfo
- Returns:
- The entity that owns the application.
-
team
- Specified by:
team
in interface ApplicationInfo
- Returns:
- The team that owns the application. Can be null.
-
summary
If this application is a game sold on Discord, this field will be the
summary field for the store page of its primary SKU.
- Specified by:
summary
in interface ApplicationInfo
-
verifyKey
- Specified by:
verifyKey
in interface ApplicationInfo
- Returns:
- The base64 encoded key for the GameSDK's
GetTicket
.
-
guildIdAsLong
public long guildIdAsLong()
Description copied from interface: HasGuild
The id of the guild this entity is from.
- Specified by:
guildIdAsLong
in interface HasGuild
- Returns:
- Long representing the guild ID.
-
primarySkuId
If this application is a game sold on Discord, this field will be the id
of the "Game SKU" that is created, if exists.
- Specified by:
primarySkuId
in interface ApplicationInfo
-
slug
If this application is a game sold on Discord, this field will be the
URL slug that links to the store page.
- Specified by:
slug
in interface ApplicationInfo
-
coverImage
If this application is a game sold on Discord, this field will be the
hash of the image on store embeds.
- Specified by:
coverImage
in interface ApplicationInfo
-
-
-
-
-
description
- Returns:
this
.
-
rpcOrigins
- Returns:
this
.
-
-
requiresCodeGrant
- Returns:
this
.
-
-
-
-
-
guildIdAsLong
- Returns:
this
.
-
primarySkuId
- Returns:
this
.
-
-
coverImage
- Returns:
this
.
-