Browse Source

fix(examples/avatar): parameters for UserUpdate

nitroflap 2 years ago
parent
commit
7044ee62cb
1 changed files with 1 additions and 1 deletions
  1. 1 1
      examples/avatar/main.go

+ 1 - 1
examples/avatar/main.go

@@ -82,7 +82,7 @@ func main() {
 	// Now lets format our base64 image into the proper format Discord wants
 	// and then call UserUpdate to set it as our user's Avatar.
 	avatar := fmt.Sprintf("data:%s;base64,%s", contentType, base64img)
-	_, err = dg.UserUpdate("", "", "", avatar, "")
+	_, err = dg.UserUpdate("", avatar)
 	if err != nil {
 		fmt.Println(err)
 	}