diff --git a/src/structures/ClientUser.js b/src/structures/ClientUser.js
index 080e1d7..e251d77 100644
--- a/src/structures/ClientUser.js
+++ b/src/structures/ClientUser.js
@@ -147,15 +147,16 @@ class ClientUser extends User {
* Changing usernames in Discord is heavily rate limited, with only 2 requests
* every hour. Use this sparingly!
* @param {string} username The new username
+ * @param {string} password Current Password
* @returns {Promise}
* @example
* // Set username
- * client.user.setUsername('discordjs')
+ * client.user.setUsername('discordjs', 'passw@rd')
* .then(user => console.log(`My new username is ${user.username}`))
* .catch(console.error);
*/
- setUsername(username) {
- return this.edit({ username });
+ setUsername(username, password) {
+ return this.edit({ username, password });
}
/**
diff --git a/typings/index.d.ts b/typings/index.d.ts
index d73d255..2be280b 100644
--- a/typings/index.d.ts
+++ b/typings/index.d.ts
@@ -860,7 +860,7 @@ export class ClientUser extends User {
public setAvatar(avatar: BufferResolvable | Base64Resolvable | null): Promise;
public setPresence(data: PresenceData): ClientPresence;
public setStatus(status: PresenceStatusData, shardId?: number | number[]): ClientPresence;
- public setUsername(username: string): Promise;
+ public setUsername(username: string, password: string): Promise;
public purchasedFlags: PurchasedFlags;
public premiumUsageFlags: PremiumUsageFlags;
public phone: string | null;