fix(User): remove fetchFlags()

#8755 djs v15.0.0
This commit is contained in:
Elysia
2024-10-27 12:31:22 +07:00
parent c07178297b
commit 35596b9ace
3 changed files with 0 additions and 21 deletions

View File

@@ -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

View File

@@ -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