docs(ChannelManager): fetch can return Promise<null> (#5422)

This commit is contained in:
Advaith
2021-03-28 06:24:19 -07:00
committed by GitHub
parent 8411b9e142
commit 1c8b1096c6
2 changed files with 2 additions and 2 deletions

View File

@@ -75,7 +75,7 @@ class ChannelManager extends BaseManager {
* @param {Snowflake} id ID of the channel
* @param {boolean} [cache=true] Whether to cache the new channel object if it isn't already
* @param {boolean} [force=false] Whether to skip the cache check and request the API
* @returns {Promise<Channel>}
* @returns {Promise<?Channel>}
* @example
* // Fetch a channel by its id
* client.channels.fetch('222109930545610754')