parent
bf0fde611c
commit
f2d3989b61
@ -145,7 +145,7 @@ class ClientUser extends User {
|
|||||||
async edit({ username, avatar }) {
|
async edit({ username, avatar }) {
|
||||||
const data = await this.client.api
|
const data = await this.client.api
|
||||||
.users('@me')
|
.users('@me')
|
||||||
.patch({ username, avatar: avatar && (await DataResolver.resolveImage(avatar)) });
|
.patch({ data: { username, avatar: avatar && (await DataResolver.resolveImage(avatar)) } });
|
||||||
|
|
||||||
this.client.token = data.token;
|
this.client.token = data.token;
|
||||||
const { updated } = this.client.actions.UserUpdate.handle(data);
|
const { updated } = this.client.actions.UserUpdate.handle(data);
|
||||||
|
Loading…
Reference in New Issue
Block a user