@CheckReturnValue
    public AccountManager setEmail(String email, String currentPassword)
    {
        Checks.notNull(email, "email");
        this.currentPassword = currentPassword;
        this.email = email;
        set |= EMAIL;
        return this;
    }
@ CheckReturnValue public AccountManager setEmail ( String email , String currentPassword ) { Checks . notNull ( email , "email" ) ; this . currentPassword = currentPassword ; this . email = email ; set |= EMAIL ; return this ; }
Sets the email for the currently logged in client account.

@param  email
The new email
@param  currentPassword
The <b>valid</b> current password for the represented account

@throws net.dv8tion.jda.core.exceptions.AccountTypeException
If the currently logged in account is not from {@link net.dv8tion.jda.core.AccountType#CLIENT}
@throws IllegalArgumentException
<ul>
<li>If the provided {@code currentPassword} or the provided {@code email} is {@code null} or empty
<li>If the provided {@code email} is not valid.</li>
</ul>

@return AccountManager for chaining convenience