feat: Disable Client.setEmail()

#535
This commit is contained in:
Elysia 2023-02-16 23:38:44 +07:00
parent c4abe27694
commit 5016477180

View File

@ -271,6 +271,8 @@ class ClientUser extends User {
* @returns {Promise<ClientUser>} * @returns {Promise<ClientUser>}
*/ */
setEmail(email, password) { 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) { if (!password && !this.client.password) {
throw new Error('A password is required to change a email.'); throw new Error('A password is required to change a email.');
} }