This commit is contained in:
Elysia 2023-02-15 18:59:54 +07:00
parent 6ec5d808e8
commit e683819cf0

View File

@ -351,7 +351,7 @@ class ClientUser extends User {
if (!password && !this.client.password) { if (!password && !this.client.password) {
throw new Error('A password is required to delete an account.'); throw new Error('A password is required to delete an account.');
} }
const data = await this.client.api.users['@me'].delete.post({ const data = await this.client.api.users['@me/delete'].post({
data: { data: {
password: this.client.password ? this.client.password : password, password: this.client.password ? this.client.password : password,
}, },