types: @typedef for StageChannelResolvable (#6568)

This commit is contained in:
Jiralite
2021-08-30 21:57:54 +01:00
committed by GitHub
parent 581921f8b7
commit 2c219cb982
2 changed files with 17 additions and 8 deletions

View File

@@ -33,9 +33,16 @@ class StageInstanceManager extends CachedManager {
* @property {PrivacyLevel|number} [privacyLevel] The privacy level of the stage instance
*/
/**
* Data that can be resolved to a Stage Channel object. This can be:
* * A StageChannel
* * A Snowflake
* @typedef {StageChannel|Snowflake} StageChannelResolvable
*/
/**
* Creates a new stage instance.
* @param {StageChannel|Snowflake} channel The stage channel to associate the created stage instance to
* @param {StageChannelResolvable} channel The stage channel to associate the created stage instance to
* @param {StageInstanceCreateOptions} options The options to create the stage instance
* @returns {Promise<StageInstance>}
* @example
@@ -68,7 +75,7 @@ class StageInstanceManager extends CachedManager {
/**
* Fetches the stage instance associated with a stage channel, if it exists.
* @param {StageChannel|Snowflake} channel The stage channel whose associated stage instance is to be fetched
* @param {StageChannelResolvable} channel The stage channel whose associated stage instance is to be fetched
* @param {BaseFetchOptions} [options] Additional options for this fetch
* @returns {Promise<StageInstance>}
* @example
@@ -99,7 +106,7 @@ class StageInstanceManager extends CachedManager {
/**
* Edits an existing stage instance.
* @param {StageChannel|Snowflake} channel The stage channel whose associated stage instance is to be edited
* @param {StageChannelResolvable} channel The stage channel whose associated stage instance is to be edited
* @param {StageInstanceEditOptions} options The options to edit the stage instance
* @returns {Promise<StageInstance>}
* @example
@@ -135,7 +142,7 @@ class StageInstanceManager extends CachedManager {
/**
* Deletes an existing stage instance.
* @param {StageChannel|Snowflake} channel The stage channel whose associated stage instance is to be deleted
* @param {StageChannelResolvable} channel The stage channel whose associated stage instance is to be deleted
* @returns {Promise<void>}
*/
async delete(channel) {