Merge pull request #51 from mavolin/36-omit

This commit is contained in:
diamondburned 2020-05-11 17:17:05 -07:00 committed by GitHub
commit 62ef214648
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 2 deletions

View File

@ -110,8 +110,8 @@ func (c *Client) GuildsRange(before, after discord.Snowflake, limit uint) ([]dis
}
var param struct {
Before discord.Snowflake `schema:"before"`
After discord.Snowflake `schema:"after"`
Before discord.Snowflake `schema:"before,omitempty"`
After discord.Snowflake `schema:"after,omitempty"`
Limit uint `schema:"limit"`
}
@ -165,6 +165,7 @@ func (c *Client) ModifyGuild(id discord.Snowflake, data ModifyGuildData) (*disco
EndpointGuilds+id.String(),
httputil.WithJSONBody(data),
)
}
func (c *Client) DeleteGuild(id discord.Snowflake) error {