def primary_sku_id : Union(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.
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 : Union(String, Nil)
- #cover_image=(_cover_image : Union(String, Nil))
- #description : Union(String, Nil)
- #description=(_description : Union(String, Nil))
- #guild_id : Union(Snowflake, Nil)
- #guild_id=(_guild_id : Union(Snowflake, Nil))
- #icon : Union(String, Nil)
- #icon=(_icon : Union(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 : Union(String, Nil)
- #primary_sku_id=(_primary_sku_id : Union(String, Nil))
- #rpc_origins : Union(Array(String), Nil)
- #rpc_origins=(_rpc_origins : Union(Array(String), Nil))
- #slug : Union(String, Nil)
- #slug=(_slug : Union(String, Nil))
- #summary : String
- #summary=(_summary : String)
- #team : Union(Team, Nil)
- #team=(_team : Union(Team, Nil))
- #to_json(json : JSON::Builder)
- #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