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:
anandre
2020-12-14 07:12:36 -06:00
committed by GitHub
parent b2a6720477
commit be0f383568

View File

@@ -31,8 +31,8 @@ class RoleManager extends BaseManager {
}
/**
* Obtains one or more roles from Discord, or the role cache if they're already available.
* @param {Snowflake} [id] ID of the role to fetch
* Obtains a role from Discord, or the role cache if they're already available.
* @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} [force=false] Whether to skip the cache check and request the API
* @returns {Promise<?Role|Collection<Snowflake, Role>>}