mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-18 20:43:30 +01:00
docs(RoleManager): fetch description (#4920)
* Update fetch description The `fetch` method does not support fetching multiple IDs, so the description is currently inaccurate. * Update src/managers/RoleManager.js Co-authored-by: Tristan Guichaoua <33934311+tguichaoua@users.noreply.github.com> Co-authored-by: Tristan Guichaoua <33934311+tguichaoua@users.noreply.github.com> Co-authored-by: Noel <buechler.noel@outlook.com>
This commit is contained in:
@@ -31,8 +31,8 @@ class RoleManager extends BaseManager {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Obtains one or more roles from Discord, or the role cache if they're already available.
|
* Obtains a role from Discord, or the role cache if they're already available.
|
||||||
* @param {Snowflake} [id] ID of the role to fetch
|
* @param {Snowflake} [id] ID of the role
|
||||||
* @param {boolean} [cache=true] Whether to cache the new role object(s) if they weren't already
|
* @param {boolean} [cache=true] Whether to cache the new role object(s) if they weren't already
|
||||||
* @param {boolean} [force=false] Whether to skip the cache check and request the API
|
* @param {boolean} [force=false] Whether to skip the cache check and request the API
|
||||||
* @returns {Promise<?Role|Collection<Snowflake, Role>>}
|
* @returns {Promise<?Role|Collection<Snowflake, Role>>}
|
||||||
|
|||||||
Reference in New Issue
Block a user