diff --git a/src/managers/GuildChannelManager.js b/src/managers/GuildChannelManager.js index 0558187c54c6..f45df226c31f 100644 --- a/src/managers/GuildChannelManager.js +++ b/src/managers/GuildChannelManager.js @@ -324,7 +324,7 @@ class GuildChannelManager extends CachedManager { * Obtains one or more guild channels from Discord, or the channel cache if they're already available. * @param {Snowflake} [id] The channel's id * @param {BaseFetchOptions} [options] Additional options for this fetch - * @returns {Promise>} + * @returns {Promise>} * @example * // Fetch all channels from the guild (excluding threads) * message.guild.channels.fetch() diff --git a/typings/index.d.ts b/typings/index.d.ts index f037d607f3de..53b2f19483d5 100644 --- a/typings/index.d.ts +++ b/typings/index.d.ts @@ -3232,8 +3232,11 @@ export class GuildChannelManager extends CachedManager; public edit(channel: GuildChannelResolvable, data: ChannelData, reason?: string): Promise; - public fetch(id: Snowflake, options?: BaseFetchOptions): Promise; - public fetch(id?: undefined, options?: BaseFetchOptions): Promise>; + public fetch(id: Snowflake, options?: BaseFetchOptions): Promise; + public fetch( + id?: undefined, + options?: BaseFetchOptions, + ): Promise>; public fetchWebhooks(channel: GuildChannelResolvable): Promise>; public setPosition( channel: GuildChannelResolvable, diff --git a/typings/index.test-d.ts b/typings/index.test-d.ts index 425d09e75f63..1108c3bb3b6c 100644 --- a/typings/index.test-d.ts +++ b/typings/index.test-d.ts @@ -908,9 +908,9 @@ declare const guildChannelManager: GuildChannelManager; expectType>(guildChannelManager.create('name', { type: 'GUILD_STORE' })); expectType>(guildChannelManager.create('name', { type: 'GUILD_STAGE_VOICE' })); - expectType>>(guildChannelManager.fetch()); - expectType>>(guildChannelManager.fetch(undefined, {})); - expectType>(guildChannelManager.fetch('0')); + expectType>>(guildChannelManager.fetch()); + expectType>>(guildChannelManager.fetch(undefined, {})); + expectType>(guildChannelManager.fetch('0')); } declare const roleManager: RoleManager;