@@ -99,16 +99,6 @@ class UserManager extends CachedManager {
|
||||
return this._add(data, cache);
|
||||
}
|
||||
|
||||
/**
|
||||
* Fetches a user's flags.
|
||||
* @param {UserResolvable} user The UserResolvable to identify
|
||||
* @param {BaseFetchOptions} [options] Additional options for this fetch
|
||||
* @returns {Promise<UserFlags>}
|
||||
*/
|
||||
async fetchFlags(user, options) {
|
||||
return (await this.fetch(user, options)).flags;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sends a message to a user.
|
||||
* @param {UserResolvable} user The UserResolvable to identify
|
||||
|
||||
@@ -388,15 +388,6 @@ class User extends Base {
|
||||
);
|
||||
}
|
||||
|
||||
/**
|
||||
* Fetches this user's flags.
|
||||
* @param {boolean} [force=false] Whether to skip the cache check and request the API
|
||||
* @returns {Promise<UserFlags>}
|
||||
*/
|
||||
fetchFlags(force = false) {
|
||||
return this.client.users.fetchFlags(this.id, { force });
|
||||
}
|
||||
|
||||
/**
|
||||
* Fetches this user.
|
||||
* @param {boolean} [force=true] Whether to skip the cache check and request the API
|
||||
|
||||
2
typings/index.d.ts
vendored
2
typings/index.d.ts
vendored
@@ -3472,7 +3472,6 @@ export class User extends PartialTextBasedChannel(Base) {
|
||||
public displayAvatarURL(options?: ImageURLOptions): string;
|
||||
public equals(user: User): boolean;
|
||||
public fetch(force?: boolean): Promise<User>;
|
||||
public fetchFlags(force?: boolean): Promise<UserFlags>;
|
||||
public setNote(note: string | null | undefined): Promise<this>;
|
||||
public toString(): UserMention;
|
||||
public getProfile(guildId?: Snowflake): Promise<any>;
|
||||
@@ -4651,7 +4650,6 @@ export class UserManager extends CachedManager<Snowflake, User, UserResolvable>
|
||||
public createDM(user: UserResolvable, options?: BaseFetchOptions): Promise<DMChannel>;
|
||||
public deleteDM(user: UserResolvable): Promise<DMChannel>;
|
||||
public fetch(user: UserResolvable, options?: BaseFetchOptions): Promise<User>;
|
||||
public fetchFlags(user: UserResolvable, options?: BaseFetchOptions): Promise<UserFlags>;
|
||||
public send(user: UserResolvable, options: string | MessagePayload | MessageOptions): Promise<Message>;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user