diff --git a/packages/discord.js/src/managers/RoleManager.js b/packages/discord.js/src/managers/RoleManager.js index f1b2d2938..a44363a92 100644 --- a/packages/discord.js/src/managers/RoleManager.js +++ b/packages/discord.js/src/managers/RoleManager.js @@ -48,7 +48,7 @@ class RoleManager extends CachedManager { * Obtains a role from Discord, or the role cache if they're already available. * @param {Snowflake} [id] The role's id * @param {BaseFetchOptions} [options] Additional options for this fetch - * @returns {Promise>} + * @returns {Promise>} * @example * // Fetch all roles from the guild * message.guild.roles.fetch() diff --git a/packages/discord.js/typings/index.d.ts b/packages/discord.js/typings/index.d.ts index 185febdfa..099346cfd 100644 --- a/packages/discord.js/typings/index.d.ts +++ b/packages/discord.js/typings/index.d.ts @@ -4491,7 +4491,7 @@ export class RoleManager extends CachedManager public guild: Guild; public get premiumSubscriberRole(): Role | null; public botRoleFor(user: UserResolvable): Role | null; - public fetch(id: Snowflake, options?: BaseFetchOptions): Promise; + public fetch(id: Snowflake, options?: BaseFetchOptions): Promise; public fetch(id?: undefined, options?: BaseFetchOptions): Promise>; public create(options?: RoleCreateOptions): Promise; public edit(role: RoleResolvable, options: RoleEditOptions): Promise; diff --git a/packages/discord.js/typings/index.test-d.ts b/packages/discord.js/typings/index.test-d.ts index 4c3da4abb..9d41698b9 100644 --- a/packages/discord.js/typings/index.test-d.ts +++ b/packages/discord.js/typings/index.test-d.ts @@ -1700,7 +1700,7 @@ declare const messageManager: MessageManager; declare const roleManager: RoleManager; expectType>>(roleManager.fetch()); expectType>>(roleManager.fetch(undefined, {})); -expectType>(roleManager.fetch('0')); +expectType>(roleManager.fetch('0')); declare const guildEmojiManager: GuildEmojiManager; expectType>>(guildEmojiManager.fetch());