Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

clientUser#setAvatar no loner work with a buffer #1047

Closed
markni opened this issue Dec 30, 2016 · 1 comment · Fixed by #1048
Closed

clientUser#setAvatar no loner work with a buffer #1047

markni opened this issue Dec 30, 2016 · 1 comment · Fixed by #1048

Comments

@markni
Copy link

markni commented Dec 30, 2016

new changes in #819 in clientUser#setAvatar assume parameter avatar is a string with string method startsWith, this result in TypeError: avatar.startsWith is not a function when pass in a buffer.

The doc still say support buffer as a parameter: https://discord.js.org/#/docs/main/stable/class/ClientUser?scrollTo=setAvatar

@devsnek
Copy link
Member

devsnek commented Dec 30, 2016

fixed in 258e4b9

@Gawdl3y Gawdl3y added the bug label Dec 31, 2016
@github-actions github-actions bot locked as resolved and limited conversation to collaborators May 12, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants