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:
parent
eb09447323
commit
728815e945
|
@ -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
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue