primary_sku_id
SourceDiscord::OAuth2Application
Inherits JSON::Serializable / Struct / Value / Object
An OAuth2 application, as registered with Discord, that can hold
information about a Client's associated bot user account and owner,
among other OAuth2 properties.
Constructors
new(pull : JSON::PullParser)
Sourcenew(*, __pull_for_json_serializable pull : JSON::PullParser)
SourceInstance methods
bot_public
Sourcebot_public=(bot_public : Bool)
Sourcebot_require_code_grant
Sourcebot_require_code_grant=(bot_require_code_grant : Bool)
Sourcecover_image
Sourcecover_image=(cover_image : String | Nil)
Sourcedescription
Sourcedescription=(description : String | Nil)
Sourceguild_id
Sourceguild_id=(guild_id : Snowflake | Nil)
Sourceicon
Sourceicon=(icon : String | Nil)
Sourceicon_url(format : CDN::ApplicationIconFormat = CDN::ApplicationIconFormat::WebP, size : Int32 = 128)
Produces a CDN URL for this application's icon in the given format and size
id
Sourceid=(id : Snowflake)
Sourcename
Sourcename=(name : String)
Sourceowner
Sourceowner=(owner : User)
Sourceprimary_sku_id=(primary_sku_id : String | Nil)
Sourcerpc_origins
Sourcerpc_origins=(rpc_origins : Array(String) | Nil)
Sourceslug
Sourceslug=(slug : String | Nil)
Sourcesummary
Sourcesummary=(summary : String)
Sourceteam
Sourceteam=(team : Team | Nil)
Sourceverify_key
Sourceverify_key=(verify_key : String)
Source