1
0
Fork 0
mirror of https://github.com/diamondburned/arikawa.git synced 2024-12-01 19:24:01 +00:00

API: Fixed Image and compile errors

This commit is contained in:
diamondburned (Forefront) 2020-05-07 14:29:46 -07:00
parent eb09447323
commit 728815e945

View file

@ -46,8 +46,8 @@ func (c *Client) CreateEmoji(
guildID discord.Snowflake, name string, image Image,
roles []discord.Snowflake) (*discord.Emoji, error) {
image.MaxSize = 256 * 1000
if err := image.Validate(); err != nil {
// Max 256KB
if err := image.Validate(256 * 1000); err != nil {
return nil, err
}