fix #539
This commit is contained in:
parent
6ec5d808e8
commit
e683819cf0
@ -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,
|
||||||
},
|
},
|
||||||
|
Loading…
Reference in New Issue
Block a user