Skip to content

Commit

Permalink
Fix GuildTemplate struct and documentation (#1191)
Browse files Browse the repository at this point in the history
* fix(structs.go): fix GuildTemplate struct and documentation

* revert(structs.go): change description from a string ptr to a string

* fix(structs.go): make name and description a pointer and omitempty

* fix(structs.go): made Name field not a string pointer. removed extra files

* fix(structs.go): fix Name field not having a type
  • Loading branch information
QPixel committed Jun 19, 2022
1 parent a7b7eaa commit 5da28ed
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions structs.go
Expand Up @@ -948,19 +948,19 @@ type GuildScheduledEventUser struct {
Member *Member `json:"member"`
}

// A GuildTemplate represents
// A GuildTemplate represents a replicable template for guild creation
type GuildTemplate struct {
// The unique code for the guild template
Code string `json:"code"`

// The name of the template
Name string `json:"name"`
Name string `json:"name,omitempty"`

// The description for the template
Description string `json:"description"`
Description *string `json:"description,omitempty"`

// The number of times this template has been used
UsageCount string `json:"usage_count"`
UsageCount int `json:"usage_count"`

// The ID of the user who created the template
CreatorID string `json:"creator_id"`
Expand Down

0 comments on commit 5da28ed

Please sign in to comment.