mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-09 16:13:31 +01:00
docs(RoleManager): error in examples (#6416)
This commit is contained in:
@@ -49,7 +49,7 @@ class RoleManager extends CachedManager {
|
||||
* @example
|
||||
* // Fetch all roles from the guild
|
||||
* message.guild.roles.fetch()
|
||||
* .then(roles => console.log(`There are ${roles.cache.size} roles.`))
|
||||
* .then(roles => console.log(`There are ${roles.size} roles.`))
|
||||
* .catch(console.error);
|
||||
* @example
|
||||
* // Fetch a single role
|
||||
|
||||
Reference in New Issue
Block a user