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
1 changed files with 2 additions and 2 deletions

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
}