def primary_sku_id : String?
#
struct Discord::OAuth2Application
- Discord::OAuth2Application
- Struct
- Value
- Object
Overview
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.
Included Modules
- JSON::Serializable
Defined in:
discordcr/mappings/oauth2.crConstructors
Instance Method Summary
- #bot_public : Bool
- #bot_public=(bot_public : Bool)
- #bot_require_code_grant : Bool
- #bot_require_code_grant=(bot_require_code_grant : Bool)
- #cover_image : String?
- #cover_image=(cover_image : String?)
- #description : String?
- #description=(description : String?)
- #guild_id : Snowflake?
- #guild_id=(guild_id : Snowflake?)
- #icon : String?
- #icon=(icon : String?)
-
#icon_url(format : CDN::ApplicationIconFormat = CDN::ApplicationIconFormat::WebP, size : Int32 = 128)
Produces a CDN URL for this application's icon in the given
format
andsize
- #id : Snowflake
- #id=(id : Snowflake)
- #name : String
- #name=(name : String)
- #owner : User
- #owner=(owner : User)
- #primary_sku_id : String?
- #primary_sku_id=(primary_sku_id : String?)
- #rpc_origins : Array(String)?
- #rpc_origins=(rpc_origins : Array(String)?)
- #slug : String?
- #slug=(slug : String?)
- #summary : String
- #summary=(summary : String)
- #team : Team?
- #team=(team : Team?)
- #verify_key : String
- #verify_key=(verify_key : String)
Constructor Detail
Instance Method Detail
def 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