StageInstanceManager

export class StageInstanceManager extends CachedManager<Snowflake, StageInstance, StageInstanceResolvable>
export class StageInstanceManager extends CachedManager<Snowflake, StageInstance, StageInstanceResolvable>
Manages API methods for StageInstance objects and holds their cache.
Readonly
cache:Collection<K, Holds>
The cache of items for this manager.
Inherited from DataManager
Readonly
client:Client
The client that instantiated this Manager
Inherited from BaseManager
guild:Guild
The guild this manager belongs to
Readonly
holds:Constructable<Holds>
The data structure belonging to this manager.
Inherited from DataManager
create(channel, options):Promise<StageInstance>
Creates a new stage instance.
NameTypeOptionalDescription
channelStageChannelResolvableNoThe stage channel to associate the created stage instance to
optionsStageInstanceCreateOptionsNoThe options to create the stage instance
delete(channel):Promise<void>
Deletes an existing stage instance.
NameTypeOptionalDescription
channelStageChannelResolvableNoThe stage channel whose associated stage instance is to be deleted
edit(channel, options):Promise<StageInstance>
Edits an existing stage instance.
NameTypeOptionalDescription
channelStageChannelResolvableNoThe stage channel whose associated stage instance is to be edited
optionsStageInstanceEditOptionsNoThe options to edit the stage instance
fetch(channel, options?):Promise<StageInstance>
Fetches the stage instance associated with a stage channel, if it exists.
NameTypeOptionalDescription
channelStageChannelResolvableNoThe stage channel whose associated stage instance is to be fetched
optionsBaseFetchOptionsYesAdditional options for this fetch
resolve(idOrInstance):Holds
Resolves a data entry to a data Object.
Returns
An instance from this Manager
NameTypeOptionalDescription
idOrInstanceHoldsNoThe id or instance of something in this Manager
resolveId(idOrInstance):K
Resolves a data entry to an instance id.
Returns
NameTypeOptionalDescription
idOrInstanceK | HoldsNoThe id or instance of something in this Manager
valueOf():Collection<K, Holds>