mirror of
https://github.com/diamondburned/arikawa.git
synced 2025-02-01 09:27:18 +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 {
|
var param struct {
|
||||||
Before discord.Snowflake `schema:"before"`
|
Before discord.Snowflake `schema:"before,omitempty"`
|
||||||
After discord.Snowflake `schema:"after"`
|
After discord.Snowflake `schema:"after,omitempty"`
|
||||||
|
|
||||||
Limit uint `schema:"limit"`
|
Limit uint `schema:"limit"`
|
||||||
}
|
}
|
||||||
|
@ -165,6 +165,7 @@ func (c *Client) ModifyGuild(id discord.Snowflake, data ModifyGuildData) (*disco
|
||||||
EndpointGuilds+id.String(),
|
EndpointGuilds+id.String(),
|
||||||
httputil.WithJSONBody(data),
|
httputil.WithJSONBody(data),
|
||||||
)
|
)
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
func (c *Client) DeleteGuild(id discord.Snowflake) error {
|
func (c *Client) DeleteGuild(id discord.Snowflake) error {
|
||||||
|
|
Loading…
Reference in a new issue