From f60eda8bcbe1bfe14cd22b9d54a06b4fc54149da Mon Sep 17 00:00:00 2001 From: Bruce Date: Mon, 10 Apr 2017 21:07:04 +0000 Subject: [PATCH] Add missing fields to Application struct --- oauth2.go | 19 ++++++++++++------- 1 file changed, 12 insertions(+), 7 deletions(-) diff --git a/oauth2.go b/oauth2.go index 14ba6bb..108b32f 100644 --- a/oauth2.go +++ b/oauth2.go @@ -15,13 +15,18 @@ package discordgo // An Application struct stores values for a Discord OAuth2 Application type Application struct { - ID string `json:"id,omitempty"` - Name string `json:"name"` - Description string `json:"description,omitempty"` - Icon string `json:"icon,omitempty"` - Secret string `json:"secret,omitempty"` - RedirectURIs *[]string `json:"redirect_uris,omitempty"` - Owner *User `json:"owner"` + ID string `json:"id,omitempty"` + Name string `json:"name"` + Description string `json:"description,omitempty"` + Icon string `json:"icon,omitempty"` + Secret string `json:"secret,omitempty"` + RedirectURIs *[]string `json:"redirect_uris,omitempty"` + BotRequireCodeGrant bool `json:"bot_require_code_grant,omitempty"` + BotPublic bool `json:"bot_public,omitempty"` + RPCApplicationState int `json:"rpc_application_state,omitempty"` + Flags int `json:"flags,omitempty"` + Owner *User `json:"owner"` + Bot *User `json:"bot"` } // Application returns an Application structure of a specific Application