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.

Defined in:

discordcr/mappings/oauth2.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(__temp_1020 : 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 : Union(String, Nil) #

[View source]
def cover_image=(_cover_image : Union(String, Nil)) #

[View source]
def description : Union(String, Nil) #

[View source]
def description=(_description : Union(String, Nil)) #

[View source]
def guild_id : Union(Snowflake, Nil) #

[View source]
def guild_id=(_guild_id : Union(Snowflake, Nil)) #

[View source]
def icon : Union(String, Nil) #

[View source]
def icon=(_icon : Union(String, Nil)) #

[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 : Union(String, Nil) #

[View source]
def primary_sku_id=(_primary_sku_id : Union(String, Nil)) #

[View source]
def rpc_origins : Union(Array(String), Nil) #

[View source]
def rpc_origins=(_rpc_origins : Union(Array(String), Nil)) #

[View source]
def slug : Union(String, Nil) #

[View source]
def slug=(_slug : Union(String, Nil)) #

[View source]
def summary : String #

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

[View source]
def team : Union(Team, Nil) #

[View source]
def team=(_team : Union(Team, Nil)) #

[View source]
def to_json(json : JSON::Builder) #

[View source]
def verify_key : String #

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

[View source]