Remove user.presence
Error (clientUser.presence)
This commit is contained in:
parent
8aecd6943a
commit
6d2cbb442a
File diff suppressed because one or more lines are too long
2
package-lock.json
generated
2
package-lock.json
generated
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "discord.js-selfbot-v13",
|
"name": "discord.js-selfbot-v13",
|
||||||
"version": "2.0.42",
|
"version": "2.0.43",
|
||||||
"lockfileVersion": 2,
|
"lockfileVersion": 2,
|
||||||
"requires": true,
|
"requires": true,
|
||||||
"packages": {
|
"packages": {
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "discord.js-selfbot-v13",
|
"name": "discord.js-selfbot-v13",
|
||||||
"version": "2.0.42",
|
"version": "2.0.43",
|
||||||
"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",
|
||||||
|
@ -74,11 +74,6 @@ class User extends Base {
|
|||||||
* @readonly
|
* @readonly
|
||||||
*/
|
*/
|
||||||
this.applications = null;
|
this.applications = null;
|
||||||
/**
|
|
||||||
* The presence of this user [v12 Patch]
|
|
||||||
* @type {?Presence}
|
|
||||||
*/
|
|
||||||
this.presence = null;
|
|
||||||
this._patch(data);
|
this._patch(data);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -167,21 +162,6 @@ class User extends Base {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* Get presence of this user
|
|
||||||
* @returns {?Presence}
|
|
||||||
*/
|
|
||||||
async getPresence() {
|
|
||||||
await Promise.all(
|
|
||||||
this.client.guilds.cache.map(guild => {
|
|
||||||
const res_ = guild.presences.resolve(this.id);
|
|
||||||
if (res_) return (this.presence = res_);
|
|
||||||
else return undefined;
|
|
||||||
}),
|
|
||||||
);
|
|
||||||
return this.presence;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Check relationship status
|
* Check relationship status
|
||||||
* @type {Relationship}
|
* @type {Relationship}
|
||||||
|
2
typings/index.d.ts
vendored
2
typings/index.d.ts
vendored
@ -2680,7 +2680,6 @@ export class User extends PartialTextBasedChannel(Base) {
|
|||||||
public readonly premiumGuildSince: Date;
|
public readonly premiumGuildSince: Date;
|
||||||
public readonly bio: string | null;
|
public readonly bio: string | null;
|
||||||
public readonly mutualGuilds: Collection<Snowflake, object>;
|
public readonly mutualGuilds: Collection<Snowflake, object>;
|
||||||
public readonly presence?: Presence;
|
|
||||||
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>;
|
||||||
@ -2697,7 +2696,6 @@ export class User extends PartialTextBasedChannel(Base) {
|
|||||||
public setNote(note?: any): Promise<string>;
|
public setNote(note?: any): Promise<string>;
|
||||||
public getProfile(): Promise<User>;
|
public getProfile(): Promise<User>;
|
||||||
public toString(): UserMention;
|
public toString(): UserMention;
|
||||||
public getPresence(): Promise<Presence | undefined>;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
export class UserContextMenuInteraction<Cached extends CacheType = CacheType> extends ContextMenuInteraction<Cached> {
|
export class UserContextMenuInteraction<Cached extends CacheType = CacheType> extends ContextMenuInteraction<Cached> {
|
||||||
|
Loading…
Reference in New Issue
Block a user