Documentation ¶
Index ¶
Constants ¶
View Source
const (
DISCORD_OAUTH2_TOKEN_URL string = "https://discord.com/api/oauth2/token"
)
Variables ¶
View Source
var (
DEFAULT_UA string = "" /* 139-byte string literal not displayed */
)
Functions ¶
func Initialize ¶
func Initialize(timeout time.Duration, appCtx AppContext) *client
Initializes the client
Types ¶
type AppContext ¶
type AppContext struct { Client_id string `client_id` Client_secret string `client_secret` Grant_type string `grant_type` Code string `code` Redirect_uri string `redirect_uri` }
Context for your Discord application
func (*AppContext) Change_ClientID ¶
func (app *AppContext) Change_ClientID(id string)
func (*AppContext) Change_ClientSecret ¶
func (app *AppContext) Change_ClientSecret(secret string)
func (*AppContext) Change_Code ¶
func (app *AppContext) Change_Code(code string)
func (*AppContext) Change_GrantType ¶
func (app *AppContext) Change_GrantType(grant_type string)
func (*AppContext) Change_REDIR_URI ¶
func (app *AppContext) Change_REDIR_URI(redir_uri string)
Click to show internal directories.
Click to hide internal directories.