4. New ClientUser Method

From Discord S.C.U.M
Update to v1.2.0
This commit is contained in:
March 7th 2022-03-30 19:50:57 +07:00
parent 8c7dfd595c
commit fe1b3fc880
7 changed files with 383 additions and 192 deletions

View File

@ -119,6 +119,7 @@ User {
flags: UserFlagsBitField { bitfield: 256 }, flags: UserFlagsBitField { bitfield: 256 },
friend: false, friend: false,
blocked: false, blocked: false,
note: null,
connectedAccounds: [], connectedAccounds: [],
premiumSince: 1623357181151, premiumSince: 1623357181151,
premiumGuildSince: 0, premiumGuildSince: 0,
@ -303,14 +304,35 @@ await message.contextMenu(botID, commandName);
- Credit: [Here](https://www.reddit.com/r/Discord_selfbots/comments/tczprx/discum_help_creating_a_selfbot_that_can_do_ping/) - Credit: [Here](https://www.reddit.com/r/Discord_selfbots/comments/tczprx/discum_help_creating_a_selfbot_that_can_do_ping/)
</details> </details>
## User HypeSquad ## User & ClientUser Method
<details> <details>
<summary>Click to show</summary> <summary>Click to show</summary>
```js ```js
// HypeSquad
await client.user.setHypeSquad('HOUSE_BRAVERY'); await client.user.setHypeSquad('HOUSE_BRAVERY');
await client.user.setHypeSquad('HOUSE_BRILLIANCE'); await client.user.setHypeSquad('HOUSE_BRILLIANCE');
await client.user.setHypeSquad('HOUSE_BALANCE'); await client.user.setHypeSquad('HOUSE_BALANCE');
// Set Note to User
await user.setNote('Hello World');
// Set Username
await client.user.setUsername('new username', 'password');
// Set Accent Color
await client.user.setAccentColor('RED'); // set color same as Embed.setColor()
// Set Banner
await client.user.setBanner('image file / image url'); // same as setAvatar & Require Nitro level 2
// Set Discord Tag
await client.user.setDiscriminator('1234', 'password'); // #1234
// Set About me
await client.user.setAboutMe('Hello World');
// Set Email
await client.user.setEmail('aiko.dev@mail.nezukobot.vn', 'password'); // It is clone email =))
// Change Password
await client.user.setPassword('old password', 'new password');
// Disable Account
await client.user.disableAccount('password');
// Delete Account [WARNING] Cannot be changed once used!
await client.user.deleteAccount('password');
``` ```
</details> </details>

View File

@ -60,13 +60,13 @@ window.webpackChunkdiscord_app.push([[Math.random()], {}, (req) => {for (const m
Credit: <img src="https://cdn.discordapp.com/emojis/889092230063734795.png" alt="." width="16" height="16"/> [<strong>hxr404</strong>](https://github.com/hxr404/Discord-Console-hacks) Credit: <img src="https://cdn.discordapp.com/emojis/889092230063734795.png" alt="." width="16" height="16"/> [<strong>hxr404</strong>](https://github.com/hxr404/Discord-Console-hacks)
## Selfbot feature ? ## Selfbot feature ?
- Friends and Block Members - [Friends and Block Members](https://github.com/aiko-chan-ai/discord.js-selfbot-v13/blob/main/DOCUMENT.md#discord-user-friend--blocked)
- Discord Apps Setting [Theme, Language, HypeSquad, etc.] - [Discord Apps Setting: Theme, Language, HypeSquad, etc.](https://github.com/aiko-chan-ai/discord.js-selfbot-v13/blob/main/DOCUMENT.md#user-settings)
- Get Profile GuildMember [Nitro Time, Boost Time, Connected Account, Bio, etc.] - [Get Profile GuildMember: Nitro Time, Boost Time, Connected Account, Bio, etc.](https://github.com/aiko-chan-ai/discord.js-selfbot-v13/blob/main/DOCUMENT.md#discord-user-info)
- Setting Position Guild and Folder - [Setting Position Guild and Folder](https://github.com/aiko-chan-ai/discord.js-selfbot-v13/blob/main/DOCUMENT.md#discord-guild-set-position)
- Custom Status and RPC (without button, because it's not working) - [Custom Status and RPC (without button, because it's not working)](https://github.com/aiko-chan-ai/discord.js-selfbot-v13/blob/main/DOCUMENT.md#custom-status-and-rpc)
- Interaction [Button, MessageSelectMenu, Slash, ContextMenu] - [Interaction: Button, MessageSelectMenu, Slash, ContextMenu](https://github.com/aiko-chan-ai/discord.js-selfbot-v13/blob/main/DOCUMENT.md#interaction)
- You can request more features for my module by placing an issue! - [You can request more features for my module by placing an issue!](https://github.com/aiko-chan-ai/discord.js-selfbot-v13/issues)
- Click <strong>[here](https://github.com/aiko-chan-ai/discord.js-selfbot-v13/blob/main/DOCUMENT.md)</strong> to see the patched functions - Click <strong>[here](https://github.com/aiko-chan-ai/discord.js-selfbot-v13/blob/main/DOCUMENT.md)</strong> to see the patched functions
## Links [Discord.js] ## Links [Discord.js]
@ -88,5 +88,13 @@ Credit: <img src="https://cdn.discordapp.com/emojis/889092230063734795.png" alt=
## Need help? ## Need help?
Contact me in Discord: [Shiraori#1782](https://discord.com/users/721746046543331449) Contact me in Discord: [Shiraori#1782](https://discord.com/users/721746046543331449)
## Credits
- [Discord.js Teams](https://github.com/discordjs/discord.js)
- [Discord S.C.U.M Teams](https://github.com/Merubokkusu/Discord-S.C.U.M)
- [Yellowy dsb.js](https://github.com/TheDevYellowy/dsb.js)
- [Discord Console Hack](https://github.com/hxr404/Discord-Console-hacks)
- And the people who submitted the issue, colab, ...
## <strong><img src="https://cdn.discordapp.com/attachments/820557032016969751/952436539118456882/flag-vietnam_1f1fb-1f1f3.png" alt="." width="20" height="20"/> Vietnamese</strong> ## <strong><img src="https://cdn.discordapp.com/attachments/820557032016969751/952436539118456882/flag-vietnam_1f1fb-1f1f3.png" alt="." width="20" height="20"/> Vietnamese</strong>
- Tóm lại là module này dùng Discord.js v13 , API v10 nên chưa chết sớm đâu, cứ dùng đi =)) - Tóm lại là module này dùng Discord.js v13 , API v10 nên chưa chết sớm đâu, cứ dùng đi =))

View File

@ -1,6 +1,6 @@
{ {
"name": "discord.js-selfbot-v13", "name": "discord.js-selfbot-v13",
"version": "1.1.7", "version": "1.2.0",
"description": "A unofficial discord.js fork for creating selfbots [Based on discord.js v13]", "description": "A unofficial discord.js fork for creating selfbots [Based on discord.js v13]",
"main": "./src/index.js", "main": "./src/index.js",
"types": "./typings/index.d.ts", "types": "./typings/index.d.ts",

View File

@ -193,6 +193,12 @@ class Client extends BaseClient {
*/ */
this.readyAt = null; this.readyAt = null;
/**
* Password cache
* @type {?string}
*/
this.password = null;
if (this.options.messageSweepInterval > 0) { if (this.options.messageSweepInterval > 0) {
process.emitWarning( process.emitWarning(
'The message sweeping client options are deprecated, use the global sweepers instead.', 'The message sweeping client options are deprecated, use the global sweepers instead.',

View File

@ -3,212 +3,350 @@
const User = require('./User'); const User = require('./User');
const DataResolver = require('../util/DataResolver'); const DataResolver = require('../util/DataResolver');
const { HypeSquadOptions } = require('../util/Constants'); const { HypeSquadOptions } = require('../util/Constants');
const { Util } = require('..');
/** /**
* Represents the logged in client's Discord user. * Represents the logged in client's Discord user.
* @extends {User} * @extends {User}
*/ */
class ClientUser extends User { class ClientUser extends User {
_patch(data) { _patch(data) {
super._patch(data); super._patch(data);
if ('verified' in data) { if ('verified' in data) {
/** /**
* Whether or not this account has been verified * Whether or not this account has been verified
* @type {boolean} * @type {boolean}
*/ */
this.verified = data.verified; this.verified = data.verified;
} }
if ('mfa_enabled' in data) { if ('mfa_enabled' in data) {
/** /**
* If the bot's {@link ClientApplication#owner Owner} has MFA enabled on their account * If the bot's {@link ClientApplication#owner Owner} has MFA enabled on their account
* @type {?boolean} * @type {?boolean}
*/ */
this.mfaEnabled = typeof data.mfa_enabled === 'boolean' ? data.mfa_enabled : null; this.mfaEnabled =
} else { typeof data.mfa_enabled === 'boolean' ? data.mfa_enabled : null;
this.mfaEnabled ??= null; } else {
} this.mfaEnabled ??= null;
}
if ('token' in data) this.client.token = data.token; if ('token' in data) this.client.token = data.token;
// Add (Selfbot) // Add (Selfbot)
if ('premium' in data) this.nitro = data.premium; if ('premium' in data) this.nitro = data.premium;
/** /**
* Nitro Status * Nitro Status
* `0`: None * `0`: None
* `1`: Classic * `1`: Classic
* `2`: Boost * `2`: Boost
* @external * @external
* https://discord.com/developers/docs/resources/user#user-object-premium-types * https://discord.com/developers/docs/resources/user#user-object-premium-types
* @type {Number} * @type {Number}
*/ */
if ('purchased_flags' in data) this.nitroType = data.purchased_flags; if ('purchased_flags' in data) this.nitroType = data.purchased_flags;
if ('phone' in data) this.phoneNumber = data.phone; if ('phone' in data) this.phoneNumber = data.phone;
if ('nsfw_allowed' in data) this.nsfwAllowed = data.nsfw_allowed; if ('nsfw_allowed' in data) this.nsfwAllowed = data.nsfw_allowed;
if ('email' in data) this.emailAddress = data.email; if ('email' in data) this.emailAddress = data.email;
} }
/** /**
* Represents the client user's presence * Represents the client user's presence
* @type {ClientPresence} * @type {ClientPresence}
* @readonly * @readonly
*/ */
get presence() { get presence() {
return this.client.presence; return this.client.presence;
} }
/** /**
* Data used to edit the logged in client * Data used to edit the logged in client
* @typedef {Object} ClientUserEditData * @typedef {Object} ClientUserEditData
* @property {string} [username] The new username * @property {string} [username] The new username
* @property {?(BufferResolvable|Base64Resolvable)} [avatar] The new avatar * @property {?(BufferResolvable|Base64Resolvable)} [avatar] The new avatar
*/ */
/** /**
* Edits the logged in client. * Edits the logged in client.
* @param {ClientUserEditData} data The new data * @param {ClientUserEditData} data The new data
* @returns {Promise<ClientUser>} * @returns {Promise<ClientUser>}
*/ */
async edit(data) { async edit(data) {
if (typeof data.avatar !== 'undefined') data.avatar = await DataResolver.resolveImage(data.avatar); if (typeof data.avatar !== 'undefined')
const newData = await this.client.api.users('@me').patch({ data }); data.avatar = await DataResolver.resolveImage(data.avatar);
this.client.token = newData.token; if (typeof data.banner !== 'undefined')
const { updated } = this.client.actions.UserUpdate.handle(newData); data.banner = await DataResolver.resolveImage(data.banner);
return updated ?? this; const newData = await this.client.api.users('@me').patch({ data });
} this.client.token = newData.token;
this.client.password = data?.password
? data?.password
: this.client.password;
const { updated } = this.client.actions.UserUpdate.handle(newData);
return updated ?? this;
}
/** /**
* Sets the username of the logged in client. * Sets the username of the logged in client.
* <info>Changing usernames in Discord is heavily rate limited, with only 2 requests * <info>Changing usernames in Discord is heavily rate limited, with only 2 requests
* every hour. Use this sparingly!</info> * every hour. Use this sparingly!</info>
* @param {string} username The new username * @param {string} username The new username
* @returns {Promise<ClientUser>} * @param {string} password The password of the account
* @example * @returns {Promise<ClientUser>}
* // Set username * @example
* client.user.setUsername('discordjs') * // Set username
* .then(user => console.log(`My new username is ${user.username}`)) * client.user.setUsername('discordjs')
* .catch(console.error); * .then(user => console.log(`My new username is ${user.username}`))
*/ * .catch(console.error);
setUsername(username) { */
return this.edit({ username }); setUsername(username, password) {
} if (!password && !this.client.password)
throw new Error('A password is required to change a username.');
return this.edit({
username,
password: this.client.password ? this.client.password : password,
});
}
/** /**
* Sets the avatar of the logged in client. * Sets the avatar of the logged in client.
* @param {?(BufferResolvable|Base64Resolvable)} avatar The new avatar * @param {?(BufferResolvable|Base64Resolvable)} avatar The new avatar
* @returns {Promise<ClientUser>} * @returns {Promise<ClientUser>}
* @example * @example
* // Set avatar * // Set avatar
* client.user.setAvatar('./avatar.png') * client.user.setAvatar('./avatar.png')
* .then(user => console.log(`New avatar set!`)) * .then(user => console.log(`New avatar set!`))
* .catch(console.error); * .catch(console.error);
*/ */
setAvatar(avatar) { setAvatar(avatar) {
return this.edit({ avatar }); return this.edit({ avatar });
} }
/** /**
* Set HyperSquad House * Sets the banner of the logged in client.
* @param {HypeSquadOptions<Number|String>} type * @param {?(BufferResolvable|Base64Resolvable)} banner The new banner
* `HOUSE_BRAVERY`: 1 * @returns {Promise<ClientUser>}
* `HOUSE_BRILLIANCE`: 2 * @example
* `HOUSE_BALANCE`: 3 * // Set banner
* @returns {Promise<void>} * client.user.setBanner('./banner.png')
* @example * .then(user => console.log(`New banner set!`))
* // Set HyperSquad HOUSE_BRAVERY * .catch(console.error);
* client.user.setHypeSquad(1); || client.user.setHypeSquad('HOUSE_BRAVERY'); */
*/ setBanner(banner) {
async setHypeSquad(type) { if (this.nitroType !== 2)
const id = typeof type === 'string' ? HypeSquadOptions[type] : type; throw new Error(
if(!id) throw new Error('Invalid HypeSquad type.'); 'You must be a Nitro Boosted User to change your banner.',
return await this.client.api.hypesquad.online.post({ data: {house_id: id} }); );
} return this.edit({ banner });
}
/** /**
* Options for setting activities * Set HyperSquad House
* @typedef {Object} ActivitiesOptions * @param {HypeSquadOptions<Number|String>} type
* @property {string} [name] Name of the activity * `HOUSE_BRAVERY`: 1
* @property {ActivityType|number} [type] Type of the activity * `HOUSE_BRILLIANCE`: 2
* @property {string} [url] Twitch / YouTube stream URL * `HOUSE_BALANCE`: 3
*/ * @returns {Promise<void>}
* @example
* // Set HyperSquad HOUSE_BRAVERY
* client.user.setHypeSquad(1); || client.user.setHypeSquad('HOUSE_BRAVERY');
*/
async setHypeSquad(type) {
const id = typeof type === 'string' ? HypeSquadOptions[type] : type;
if (!id) throw new Error('Invalid HypeSquad type.');
return await this.client.api.hypesquad.online.post({
data: { house_id: id },
});
}
/** /**
* Data resembling a raw Discord presence. * Set Accent color
* @typedef {Object} PresenceData * @param {ColorResolvable} color Color to set
* @property {PresenceStatusData} [status] Status of the user * @returns {Promise}
* @property {boolean} [afk] Whether the user is AFK */
* @property {ActivitiesOptions[]} [activities] Activity the user is playing setAccentColor(color = null) {
* @property {number|number[]} [shardId] Shard id(s) to have the activity set on return this.edit({ accent_color: color ? Util.resolveColor(color) : null });
*/ }
/** /**
* Sets the full presence of the client user. * Set discriminator
* @param {PresenceData} data Data for the presence * @param {User.discriminator} discriminator It is #1234
* @returns {ClientPresence} * @param {string} password The password of the account
* @example * @returns {Promise}
* // Set the client user's presence */
* client.user.setPresence({ activities: [{ name: 'with discord.js' }], status: 'idle' }); setDiscriminator(discriminator, password) {
*/ if (!password && !this.client.password)
setPresence(data) { throw new Error('A password is required to change a discriminator.');
return this.client.presence.set(data); return this.edit({
} discriminator,
password: this.client.password ? this.client.password : password,
});
}
/** /**
* A user's status. Must be one of: * Set About me
* * `online` * @param {String} bio Bio to set
* * `idle` * @returns {Promise}
* * `invisible` */
* * `dnd` (do not disturb) setAboutMe(bio = null) {
* @typedef {string} PresenceStatusData return this.edit({
*/ bio,
});
}
/** /**
* Sets the status of the client user. * Change the email
* @param {PresenceStatusData} status Status to change to * @param {Email<string>} email Email to change
* @param {number|number[]} [shardId] Shard id(s) to have the activity set on * @param {string} password Password of the account
* @returns {ClientPresence} * @returns {Promise}
* @example */
* // Set the client user's status setEmail(email, password) {
* client.user.setStatus('idle'); if (!password && !this.client.password)
*/ throw new Error('A password is required to change a email.');
setStatus(status, shardId) { return this.edit({
return this.setPresence({ status, shardId }); email,
} password: this.client.password ? this.client.password : password,
});
}
/** /**
* Options for setting an activity. * Set new password
* @typedef {Object} ActivityOptions * @param {string} oldPassword Old password
* @property {string} [name] Name of the activity * @param {string} newPassword New password to set
* @property {string} [url] Twitch / YouTube stream URL * @returns {Promise}
* @property {ActivityType|number} [type] Type of the activity */
* @property {number|number[]} [shardId] Shard Id(s) to have the activity set on setPassword(oldPassword, newPassword) {
*/ if (!oldPassword && !this.client.password)
throw new Error('A password is required to change a password.');
if (!newPassword) throw new Error('New password is required.');
return this.edit({
password: this.client.password ? this.client.password : oldPassword,
new_password: newPassword,
});
}
/** /**
* Sets the activity the client user is playing. * Disable account
* @param {string|ActivityOptions} [name] Activity being played, or options for setting the activity * @param {string} password Password of the account
* @param {ActivityOptions} [options] Options for setting the activity * @returns {Promise}
* @returns {ClientPresence} */
* @example async disableAccount(password) {
* // Set the client user's activity if (!password && !this.client.password)
* client.user.setActivity('discord.js', { type: 'WATCHING' }); throw new Error('A password is required to disable an account.');
*/ return await this.client.api.users['@me'].disable.post({
setActivity(name, options = {}) { data: {
if (!name) return this.setPresence({ activities: [], shardId: options.shardId }); password: this.client.password ? this.client.password : password,
},
});
}
const activity = Object.assign({}, options, typeof name === 'object' ? name : { name }); /**
return this.setPresence({ activities: [activity], shardId: activity.shardId }); * Delete account. Warning: Cannot be changed once used!
} * @param {string} password Password of the account
* @returns {Promise}
*/
async deleteAccount(password) {
if (!password && !this.client.password)
throw new Error('A password is required to delete an account.');
return await this.client.api.users['@me'].delete.post({
data: {
password: this.client.password ? this.client.password : password,
},
});
}
/** /**
* Sets/removes the AFK flag for the client user. * Options for setting activities
* @param {boolean} [afk=true] Whether or not the user is AFK * @typedef {Object} ActivitiesOptions
* @param {number|number[]} [shardId] Shard Id(s) to have the AFK flag set on * @property {string} [name] Name of the activity
* @returns {ClientPresence} * @property {ActivityType|number} [type] Type of the activity
*/ * @property {string} [url] Twitch / YouTube stream URL
setAFK(afk = true, shardId) { */
return this.setPresence({ afk, shardId });
} /**
* Data resembling a raw Discord presence.
* @typedef {Object} PresenceData
* @property {PresenceStatusData} [status] Status of the user
* @property {boolean} [afk] Whether the user is AFK
* @property {ActivitiesOptions[]} [activities] Activity the user is playing
* @property {number|number[]} [shardId] Shard id(s) to have the activity set on
*/
/**
* Sets the full presence of the client user.
* @param {PresenceData} data Data for the presence
* @returns {ClientPresence}
* @example
* // Set the client user's presence
* client.user.setPresence({ activities: [{ name: 'with discord.js' }], status: 'idle' });
*/
setPresence(data) {
return this.client.presence.set(data);
}
/**
* A user's status. Must be one of:
* * `online`
* * `idle`
* * `invisible`
* * `dnd` (do not disturb)
* @typedef {string} PresenceStatusData
*/
/**
* Sets the status of the client user.
* @param {PresenceStatusData} status Status to change to
* @param {number|number[]} [shardId] Shard id(s) to have the activity set on
* @returns {ClientPresence}
* @example
* // Set the client user's status
* client.user.setStatus('idle');
*/
setStatus(status, shardId) {
return this.setPresence({ status, shardId });
}
/**
* Options for setting an activity.
* @typedef {Object} ActivityOptions
* @property {string} [name] Name of the activity
* @property {string} [url] Twitch / YouTube stream URL
* @property {ActivityType|number} [type] Type of the activity
* @property {number|number[]} [shardId] Shard Id(s) to have the activity set on
*/
/**
* Sets the activity the client user is playing.
* @param {string|ActivityOptions} [name] Activity being played, or options for setting the activity
* @param {ActivityOptions} [options] Options for setting the activity
* @returns {ClientPresence}
* @example
* // Set the client user's activity
* client.user.setActivity('discord.js', { type: 'WATCHING' });
*/
setActivity(name, options = {}) {
if (!name)
return this.setPresence({ activities: [], shardId: options.shardId });
const activity = Object.assign(
{},
options,
typeof name === 'object' ? name : { name },
);
return this.setPresence({
activities: [activity],
shardId: activity.shardId,
});
}
/**
* Sets/removes the AFK flag for the client user.
* @param {boolean} [afk=true] Whether or not the user is AFK
* @param {number|number[]} [shardId] Shard Id(s) to have the AFK flag set on
* @returns {ClientPresence}
*/
setAFK(afk = true, shardId) {
return this.setPresence({ afk, shardId });
}
} }
module.exports = ClientUser; module.exports = ClientUser;

View File

@ -423,6 +423,11 @@ class User extends Base {
return json; return json;
} }
/**
* Set note to user
* @param {String<User.note>} note Note to set
* @returns {Promise<User.note>}
*/
async setNote(note = null) { async setNote(note = null) {
await this.client.api.users['@me'] await this.client.api.users['@me']
.notes(id) .notes(id)

14
typings/index.d.ts vendored
View File

@ -565,6 +565,7 @@ export class Client<Ready extends boolean = boolean> extends BaseClient {
public users: UserManager; public users: UserManager;
public voice: ClientVoiceManager; public voice: ClientVoiceManager;
public ws: WebSocketManager; public ws: WebSocketManager;
public password: String | null;
public destroy(): void; public destroy(): void;
public fetchGuildPreview(guild: GuildResolvable): Promise<GuildPreview>; public fetchGuildPreview(guild: GuildResolvable): Promise<GuildPreview>;
public fetchInvite(invite: InviteResolvable, options?: ClientFetchInviteOptions): Promise<Invite>; public fetchInvite(invite: InviteResolvable, options?: ClientFetchInviteOptions): Promise<Invite>;
@ -636,10 +637,19 @@ export class ClientUser extends User {
public setActivity(name: string, options?: ActivityOptions): ClientPresence; public setActivity(name: string, options?: ActivityOptions): ClientPresence;
public setAFK(afk?: boolean, shardId?: number | number[]): ClientPresence; public setAFK(afk?: boolean, shardId?: number | number[]): ClientPresence;
public setAvatar(avatar: BufferResolvable | Base64Resolvable | null): Promise<this>; public setAvatar(avatar: BufferResolvable | Base64Resolvable | null): Promise<this>;
public setBanner(banner: BufferResolvable | Base64Resolvable | null): Promise<this>;
public setPresence(data: PresenceData): ClientPresence; public setPresence(data: PresenceData): ClientPresence;
public setStatus(status: PresenceStatusData, shardId?: number | number[]): ClientPresence; public setStatus(status: PresenceStatusData, shardId?: number | number[]): ClientPresence;
public setUsername(username: string): Promise<this>; public setUsername(username: string, password: string): Promise<this>;
public setHypeSquad(type: HypeSquadOptions<Number|String>): Promise<void>; public setHypeSquad(type: HypeSquadOptions<Number|String>): Promise<void>;
public setAccentColor(color: ColorResolvable): Promise<this>;
public setDiscriminator(discriminator: string, password: string): Promise<this>;
public setAboutMe(bio: string): Promise<this>;
public setBanner(): Promise<this>;
public setEmail(email: string, password: string): Promise<this>;
public setPassword(oldPassword: string, newPassword: string): Promise<this>;
public disableAccount(password: string): Promise<this>;
public deleteAccount(password: string): Promise<this>;
// Selfbot // Selfbot
public readonly nitro: boolean; public readonly nitro: boolean;
/** /**
@ -2427,6 +2437,7 @@ export class User extends PartialTextBasedChannel(Base) {
public system: boolean; public system: boolean;
public readonly tag: string; public readonly tag: string;
public username: string; public username: string;
public note: string | null;
public avatarURL(options?: ImageURLOptions): string | null; public avatarURL(options?: ImageURLOptions): string | null;
public bannerURL(options?: ImageURLOptions): string | null; public bannerURL(options?: ImageURLOptions): string | null;
public createDM(force?: boolean): Promise<DMChannel>; public createDM(force?: boolean): Promise<DMChannel>;
@ -2440,6 +2451,7 @@ export class User extends PartialTextBasedChannel(Base) {
public sendFriendRequest(): Promise<User>; public sendFriendRequest(): Promise<User>;
public unFriend(): Promise<User>; public unFriend(): Promise<User>;
public unBlock(): Promise<User>; public unBlock(): Promise<User>;
public setNote(note): Promise<String>;
public getProfile(): Promise<User>; public getProfile(): Promise<User>;
public toString(): UserMention; public toString(): UserMention;
} }