Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix GuildTemplate struct and documentation #1191

Merged
merged 5 commits into from Jun 19, 2022
Merged
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
5 changes: 5 additions & 0 deletions .fleet/settings.json
@@ -0,0 +1,5 @@
{
"go.root": "/usr/lib/go",
"go.path": "/home/qpixel/go",
"go.modules": "true",
}
Binary file added examples/components/components
Binary file not shown.
8 changes: 4 additions & 4 deletions structs.go
Expand Up @@ -946,19 +946,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"`
QPixel marked this conversation as resolved.
Show resolved Hide resolved

// 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