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

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

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

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

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

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

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

[View source]