mirror of
https://github.com/diamondburned/arikawa.git
synced 2025-01-21 03:57:26 +00:00
API: fix #36
This commit is contained in:
parent
d4bdf700f3
commit
ec706b6ad2
|
@ -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 {
|
||||
|
|
Loading…
Reference in a new issue