Fixed message_embed fmt.Sprintf bug

This commit is contained in:
diamondburned (Forefront) 2020-01-15 20:51:22 -08:00
parent 54503f5e58
commit b892c87e2e
1 changed files with 1 additions and 1 deletions

View File

@ -98,7 +98,7 @@ func (e *Embed) Validate() error {
if len(field.Value) > 1024 {
return &ErrOverbound{len(field.Value), 1024,
fmt.Sprintf("field %s value", i)}
fmt.Sprintf("field %d value", i)}
}
sum += len(field.Name) + len(field.Value)