1
0
Fork 0
mirror of https://github.com/diamondburned/arikawa.git synced 2025-02-01 09:27:18 +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 { 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 {