Skip to content

Commit

Permalink
feat(Application): add integration_types_config
Browse files Browse the repository at this point in the history
  • Loading branch information
FedorLap2006 committed Mar 19, 2024
1 parent fe33b44 commit ee2a0a8
Showing 1 changed file with 28 additions and 18 deletions.
46 changes: 28 additions & 18 deletions structs.go
Original file line number Diff line number Diff line change
Expand Up @@ -143,26 +143,36 @@ const (
ApplicationIntegrationUserInstall ApplicationIntegrationType = 1
)

type ApplicationInstallParams struct {

Check failure on line 146 in structs.go

View workflow job for this annotation

GitHub Actions / lint

exported type `ApplicationInstallParams` should have comment or be unexported (golint)

Check failure on line 146 in structs.go

View workflow job for this annotation

GitHub Actions / lint

exported type `ApplicationInstallParams` should have comment or be unexported (golint)
Scopes []string `json:"scopes"`
Permissions int64 `json:"permissions,string"`
}

type ApplicationIntegrationTypeConfiguration struct {

Check failure on line 151 in structs.go

View workflow job for this annotation

GitHub Actions / lint

exported type `ApplicationIntegrationTypeConfiguration` should have comment or be unexported (golint)

Check failure on line 151 in structs.go

View workflow job for this annotation

GitHub Actions / lint

exported type `ApplicationIntegrationTypeConfiguration` should have comment or be unexported (golint)
OAuth2InstallParams ApplicationInstallParams `json:"oauth2_install_params"`
}

// Application stores values for a Discord Application
type Application struct {
ID string `json:"id,omitempty"`
Name string `json:"name"`
Icon string `json:"icon,omitempty"`
Description string `json:"description,omitempty"`
RPCOrigins []string `json:"rpc_origins,omitempty"`
BotPublic bool `json:"bot_public,omitempty"`
BotRequireCodeGrant bool `json:"bot_require_code_grant,omitempty"`
TermsOfServiceURL string `json:"terms_of_service_url"`
PrivacyProxyURL string `json:"privacy_policy_url"`
Owner *User `json:"owner"`
Summary string `json:"summary"`
VerifyKey string `json:"verify_key"`
Team *Team `json:"team"`
GuildID string `json:"guild_id"`
PrimarySKUID string `json:"primary_sku_id"`
Slug string `json:"slug"`
CoverImage string `json:"cover_image"`
Flags int `json:"flags,omitempty"`
ID string `json:"id,omitempty"`
Name string `json:"name"`
Icon string `json:"icon,omitempty"`
Description string `json:"description,omitempty"`
RPCOrigins []string `json:"rpc_origins,omitempty"`
BotPublic bool `json:"bot_public,omitempty"`
BotRequireCodeGrant bool `json:"bot_require_code_grant,omitempty"`
TermsOfServiceURL string `json:"terms_of_service_url"`
PrivacyProxyURL string `json:"privacy_policy_url"`
Owner *User `json:"owner"`
Summary string `json:"summary"`
VerifyKey string `json:"verify_key"`
Team *Team `json:"team"`
GuildID string `json:"guild_id"`
PrimarySKUID string `json:"primary_sku_id"`
Slug string `json:"slug"`
CoverImage string `json:"cover_image"`
Flags int `json:"flags,omitempty"`
IntegrationTypesConfig map[ApplicationIntegrationType]*ApplicationIntegrationTypeConfiguration `json:"integration_types"`
}

// ApplicationRoleConnectionMetadataType represents the type of application role connection metadata.
Expand Down

0 comments on commit ee2a0a8

Please sign in to comment.