ApplicationImpl

class ApplicationImpl(val json: JsonNode, val idAsLong: Long, val yde: YDE) : Application(source)

Constructors

Link copied to clipboard
constructor(json: JsonNode, idAsLong: Long, yde: YDE)

Functions

Link copied to clipboard
open fun format(format: String): String

Formats the name of the entity

Link copied to clipboard
open override fun formatTo(formatter: Formatter?, flags: Int, width: Int, precision: Int)

Formats the object using the provided {@link Formatter formatter}.

Link copied to clipboard
open override fun toString(): String

Converts this entity to a string using the io.github.ydwk.ydwk.util.EntityToStringBuilder.

Properties

Link copied to clipboard
open val asIncrement: Long

The increment of this snowflake.

Link copied to clipboard
open val asProcessId: Long

The process id of this snowflake.

Link copied to clipboard
open val asTimestamp: Long

The timestamp of this snowflake. (Milliseconds since Discord Epoch, the first second of 2015 or 1420070400000.)

Link copied to clipboard
open val asWorkerId: Long

The worker id of this snowflake.

Link copied to clipboard
open override var botOwner: User?

The owner of the bot.

Link copied to clipboard
open override var botPrivacyPolicy: URL?

The bots privacy policy.

Link copied to clipboard
open override var botPublic: Boolean

If the bot can only be added by the bot owner.

Link copied to clipboard
open override var botRequireCodeGrant: Boolean

If the bot will only join upon completion of the full oauth2 code grant flow.

Link copied to clipboard
open override var botTermsOfService: URL?

The bots terms of service.

Link copied to clipboard
open override var coverImage: String?

The cover image hash of the application.

Link copied to clipboard
open override var description: String

The description of the application.

Link copied to clipboard
open override var flags: Int?

The application's public flags.

Link copied to clipboard
open override var gameSdkId: GetterSnowFlake?

The game sdk id of the application.

Link copied to clipboard
open override var guild: Guild?

Gets the guild this application is for.

Link copied to clipboard
open override var icon: String?

The icon hash of the application.

Link copied to clipboard
open val id: String

The id of this snowflake as a String.

Link copied to clipboard
open override val idAsLong: Long

The id of this snowflake as a Long.

Link copied to clipboard
open override val json: JsonNode

The json representation of this entity.

Link copied to clipboard
open override var name: String
Link copied to clipboard
open override var rpcOrigins: Array<String>?

An array of rpc origin urls, if rpc is enabled.

Link copied to clipboard
open override var slug: String?

The url of the slug for the application.

Link copied to clipboard
open override var tags: Array<String>?

The application's tags.

Link copied to clipboard
open override var verifyKey: String?

The hex encoded key for verification in interactions and the GameSDK's GetTicket.

Link copied to clipboard
open override val yde: YDE

The main YDE instance.