fix(examples/avatar): parameters for UserUpdate
This commit is contained in:
parent
e16b1f8e5b
commit
7044ee62cb
1 changed files with 1 additions and 1 deletions
|
@ -82,7 +82,7 @@ func main() {
|
||||||
// Now lets format our base64 image into the proper format Discord wants
|
// Now lets format our base64 image into the proper format Discord wants
|
||||||
// and then call UserUpdate to set it as our user's Avatar.
|
// and then call UserUpdate to set it as our user's Avatar.
|
||||||
avatar := fmt.Sprintf("data:%s;base64,%s", contentType, base64img)
|
avatar := fmt.Sprintf("data:%s;base64,%s", contentType, base64img)
|
||||||
_, err = dg.UserUpdate("", "", "", avatar, "")
|
_, err = dg.UserUpdate("", avatar)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
fmt.Println(err)
|
fmt.Println(err)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue