1
0
Fork 0
mirror of https://github.com/diamondburned/arikawa.git synced 2025-01-21 03:57:26 +00:00
This commit is contained in:
mavolin 2020-05-11 20:24:28 +02:00
parent d4bdf700f3
commit ec706b6ad2
No known key found for this signature in database
GPG key ID: D8681218EDF216DF

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 {