mirror of
https://github.com/danbulant/discord.js
synced 2026-06-20 07:02:00 +00:00
Webpack build: 258e4b9085
This commit is contained in:
parent
6479565491
commit
4a8cd3dd63
2 changed files with 5 additions and 5 deletions
|
|
@ -8923,7 +8923,7 @@ class ClientUser extends User {
|
|||
* .catch(console.error);
|
||||
*/
|
||||
setAvatar(avatar) {
|
||||
if (avatar.startsWith('data:')) {
|
||||
if (typeof avatar === 'string' && avatar.startsWith('data:')) {
|
||||
return this.client.rest.methods.updateCurrentUser({ avatar });
|
||||
} else {
|
||||
return this.client.resolver.resolveBuffer(avatar).then(data =>
|
||||
|
|
|
|||
8
discord.master.min.js
vendored
8
discord.master.min.js
vendored
File diff suppressed because one or more lines are too long
Loading…
Reference in a new issue