def primary_sku_id : String | Nil
#
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 | Nil
- #cover_image=(cover_image : String | Nil)
- #description : String | Nil
- #description=(description : String | Nil)
- #guild_id : Snowflake | Nil
- #guild_id=(guild_id : Snowflake | Nil)
- #icon : String | Nil
- #icon=(icon : String | Nil)
-
#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 | Nil
- #primary_sku_id=(primary_sku_id : String | Nil)
- #rpc_origins : Array(String) | Nil
- #rpc_origins=(rpc_origins : Array(String) | Nil)
- #slug : String | Nil
- #slug=(slug : String | Nil)
- #summary : String
- #summary=(summary : String)
- #team : Team | Nil
- #team=(team : Team | Nil)
- #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