struct

Discord::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)
Source
new(*, __pull_for_json_serializable pull : JSON::PullParser)
Source

Instance methods

bot_public
Source
bot_public=(bot_public : Bool)
Source
bot_require_code_grant
Source
bot_require_code_grant=(bot_require_code_grant : Bool)
Source
cover_image
Source
cover_image=(cover_image : String | Nil)
Source
description
Source
description=(description : String | Nil)
Source
guild_id
Source
guild_id=(guild_id : Snowflake | Nil)
Source
icon
Source
icon=(icon : String | Nil)
Source
icon_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

Source
id=(id : Snowflake)
Source
name
Source
name=(name : String)
Source
owner
Source
owner=(owner : User)
Source
primary_sku_id
Source
primary_sku_id=(primary_sku_id : String | Nil)
Source
rpc_origins
Source
rpc_origins=(rpc_origins : Array(String) | Nil)
Source
slug
Source
slug=(slug : String | Nil)
Source
summary
Source
summary=(summary : String)
Source
team
Source
team=(team : Team | Nil)
Source
verify_key
Source
verify_key=(verify_key : String)
Source