From 5016477180b992d9a2b19c335396ee6238b52874 Mon Sep 17 00:00:00 2001 From: Elysia <71698422+aiko-chan-ai@users.noreply.github.com> Date: Thu, 16 Feb 2023 23:38:44 +0700 Subject: [PATCH] feat: Disable `Client.setEmail()` #535 --- src/structures/ClientUser.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/structures/ClientUser.js b/src/structures/ClientUser.js index 41cbfec..8f8a6d5 100644 --- a/src/structures/ClientUser.js +++ b/src/structures/ClientUser.js @@ -271,6 +271,8 @@ class ClientUser extends User { * @returns {Promise} */ setEmail(email, password) { + throw new Error('This method is not available yet. Please use the official Discord client to change your email.'); + // eslint-disable-next-line no-unreachable if (!password && !this.client.password) { throw new Error('A password is required to change a email.'); }