struct Discord::OAuth2Application

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

Defined in:

discordcr/mappings/oauth2.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(pull : JSON::PullParser) #

[View source]

Instance Method Detail

def bot_public : Bool #

[View source]
def bot_public=(bot_public : Bool) #

[View source]
def bot_require_code_grant : Bool #

[View source]
def bot_require_code_grant=(bot_require_code_grant : Bool) #

[View source]
def cover_image : String? #

[View source]
def cover_image=(cover_image : String?) #

[View source]
def description : String? #

[View source]
def description=(description : String?) #

[View source]
def guild_id : Snowflake? #

[View source]
def guild_id=(guild_id : Snowflake?) #

[View source]
def icon : String? #

[View source]
def icon=(icon : String?) #

[View source]
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


[View source]
def id : Snowflake #

[View source]
def id=(id : Snowflake) #

[View source]
def name : String #

[View source]
def name=(name : String) #

[View source]
def owner : User #

[View source]
def owner=(owner : User) #

[View source]
def primary_sku_id : String? #

[View source]
def primary_sku_id=(primary_sku_id : String?) #

[View source]
def rpc_origins : Array(String)? #

[View source]
def rpc_origins=(rpc_origins : Array(String)?) #

[View source]
def slug : String? #

[View source]
def slug=(slug : String?) #

[View source]
def summary : String #

[View source]
def summary=(summary : String) #

[View source]
def team : Team? #

[View source]
def team=(team : Team?) #

[View source]
def verify_key : String #

[View source]
def verify_key=(verify_key : String) #

[View source]