From 5da28ed4b999452c7b2921b1f971667ecb324939 Mon Sep 17 00:00:00 2001 From: Riley Date: Sun, 19 Jun 2022 08:47:03 -0700 Subject: [PATCH] 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 --- structs.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/structs.go b/structs.go index 0b6b6a6..98ad758 100644 --- a/structs.go +++ b/structs.go @@ -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"`