From e683819cf0cf4b8371963f82ba76e744148c58be Mon Sep 17 00:00:00 2001 From: Elysia <71698422+aiko-chan-ai@users.noreply.github.com> Date: Wed, 15 Feb 2023 18:59:54 +0700 Subject: [PATCH] fix #539 --- src/structures/ClientUser.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/structures/ClientUser.js b/src/structures/ClientUser.js index 85b711c..41cbfec 100644 --- a/src/structures/ClientUser.js +++ b/src/structures/ClientUser.js @@ -351,7 +351,7 @@ class ClientUser extends User { if (!password && !this.client.password) { 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: { password: this.client.password ? this.client.password : password, },