fix(ClientUser): Remove token assignment

backport #10953
This commit is contained in:
Elysia
2025-07-08 21:23:31 +07:00
parent 55265d82d3
commit 011aa4730e

View File

@@ -141,7 +141,6 @@ class ClientUser extends User {
*/ */
async edit(options = {}) { async edit(options = {}) {
const data = await this.client.api.users('@me').patch({ data: options }); const data = await this.client.api.users('@me').patch({ data: options });
this.client.token = data.token;
const { updated } = this.client.actions.UserUpdate.handle(data); const { updated } = this.client.actions.UserUpdate.handle(data);
return updated ?? this; return updated ?? this;
} }