types(GuildChannelManager): correct fetch return type (v13)
#8551 discord.js
This commit is contained in:
parent
d5a0b94288
commit
37ca4593d3
@ -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<?GuildChannel|Collection<Snowflake, GuildChannel>>}
|
||||
* @returns {Promise<?GuildChannel|ThreadChannel|Collection<Snowflake, ?GuildChannel>>}
|
||||
* @example
|
||||
* // Fetch all channels from the guild (excluding threads)
|
||||
* message.guild.channels.fetch()
|
||||
|
7
typings/index.d.ts
vendored
7
typings/index.d.ts
vendored
@ -3696,8 +3696,11 @@ export class GuildChannelManager extends CachedManager<Snowflake, GuildBasedChan
|
||||
options?: ChannelWebhookCreateOptions,
|
||||
): Promise<Webhook>;
|
||||
public edit(channel: GuildChannelResolvable, data: ChannelData, reason?: string): Promise<GuildChannel>;
|
||||
public fetch(id: Snowflake, options?: BaseFetchOptions): Promise<NonThreadGuildBasedChannel | null>;
|
||||
public fetch(id?: undefined, options?: BaseFetchOptions): Promise<Collection<Snowflake, NonThreadGuildBasedChannel>>;
|
||||
public fetch(id: Snowflake, options?: BaseFetchOptions): Promise<GuildBasedChannel | null>;
|
||||
public fetch(
|
||||
id?: undefined,
|
||||
options?: BaseFetchOptions,
|
||||
): Promise<Collection<Snowflake, NonThreadGuildBasedChannel | null>>;
|
||||
public fetchWebhooks(channel: GuildChannelResolvable): Promise<Collection<Snowflake, Webhook>>;
|
||||
public setPosition(
|
||||
channel: GuildChannelResolvable,
|
||||
|
Loading…
Reference in New Issue
Block a user