forked from pothtonswer/discordmuffin
Fix GuildTemplate struct and documentation (#1191)
* 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
This commit is contained in:
parent
a7b7eaa2af
commit
5da28ed4b9
1 changed files with 4 additions and 4 deletions
|
@ -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"`
|
||||
|
|
Loading…
Reference in a new issue