Skip to content

Commit

Permalink
Remove flags parameters
Browse files Browse the repository at this point in the history
  • Loading branch information
igolaizola committed Dec 16, 2024
1 parent a6f7eac commit 75a8611
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions pkg/discord/api.go
Original file line number Diff line number Diff line change
Expand Up @@ -99,9 +99,9 @@ type UserProfile struct {
}

type UserApplication struct {
ID string `json:"id"`
Flags any `json:"flags"`
Verified bool `json:"verified"`
ID string `json:"id"`
// Flags any `json:"flags"`
Verified bool `json:"verified"`
}

type ApplicationCommandSearch struct {
Expand All @@ -112,8 +112,8 @@ type ApplicationCommandSearch struct {
// Application stores values for a Discord Application
//
// This has been modified from the original discordgo.Application in order to
// fix the `Flags` field which used to be an int and is now a string. We left it
// as an `any` type to avoid breaking changes.
// fix the `Flags` field which used to be an int and is now a string. We removed
// it from the struct to avoid breaking changes.
type Application struct {
ID string `json:"id,omitempty"`
Name string `json:"name"`
Expand All @@ -132,5 +132,5 @@ type Application struct {
PrimarySKUID string `json:"primary_sku_id"`
Slug string `json:"slug"`
CoverImage string `json:"cover_image"`
Flags any `json:"flags,omitempty"`
// Flags any `json:"flags,omitempty"`
}

0 comments on commit 75a8611

Please sign in to comment.