Skip to content

Commit

Permalink
refactor(ApplicationIntegrationTypeConfiguration): shorten the name
Browse files Browse the repository at this point in the history
  • Loading branch information
FedorLap2006 committed Mar 21, 2024
1 parent 368042d commit 5f9e70e
Showing 1 changed file with 21 additions and 21 deletions.
42 changes: 21 additions & 21 deletions structs.go
Original file line number Diff line number Diff line change
Expand Up @@ -153,32 +153,32 @@ type ApplicationInstallParams struct {
Permissions int64 `json:"permissions,string"`
}

// ApplicationIntegrationTypeConfiguration represents application's configuration for a particular integration type.
type ApplicationIntegrationTypeConfiguration struct {
// ApplicationIntegrationTypeConfig represents application's configuration for a particular integration type.
type ApplicationIntegrationTypeConfig struct {
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"`
IntegrationTypesConfig map[ApplicationIntegrationType]*ApplicationIntegrationTypeConfiguration `json:"integration_types"`
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]*ApplicationIntegrationTypeConfig `json:"integration_types"`
}

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

0 comments on commit 5f9e70e

Please sign in to comment.