export class StageInstanceManager extends CachedManager<Snowflake, StageInstance, StageInstanceResolvable>
Manages API methods for StageInstance objects and holds their cache.
readonlyCollection<Key, Holds> cache :
The cache of items for this manager.
Inherited from: DataManager
Guild guild :
The guild this manager belongs to
readonlyConstructable<Holds> holds :
The data structure belonging to this manager.
Inherited from: DataManager
createchannel: StageChannelResolvableoptions: StageInstanceCreateOptions) : Promise<StageInstance> (
channel: StageChannelResolvable
options: StageInstanceCreateOptions
Creates a new stage instance.
Examples:
// Create a stage instance
guild.stageInstances.create('1234567890123456789', {
topic: 'A very creative topic',
privacyLevel: GuildPrivacyLevel.GuildOnly
})
.then(stageInstance => console.log(stageInstance))
.catch(console.error);
deletechannel: StageChannelResolvable) : Promise<void> (
channel: StageChannelResolvable
Deletes an existing stage instance.
editchannel: StageChannelResolvableoptions: StageInstanceEditOptions) : Promise<StageInstance> (
channel: StageChannelResolvable
options: StageInstanceEditOptions
Edits an existing stage instance.
Examples:
// Edit a stage instance
guild.stageInstances.edit('1234567890123456789', { topic: 'new topic' })
.then(stageInstance => console.log(stageInstance))
.catch(console.error);
fetchchannel: StageChannelResolvableoptions?: BaseFetchOptions) : Promise<StageInstance> (
channel: StageChannelResolvable
options?: BaseFetchOptions
Fetches the stage instance associated with a stage channel, if it exists.
Examples:
// Fetch a stage instance
guild.stageInstances.fetch('1234567890123456789')
.then(stageInstance => console.log(stageInstance))
.catch(console.error);
Overload 1
Overload 2
Overload 1
Overload 2
valueOfCollection<Key, Holds> () :
Inherited from: DataManager