export class StageInstanceManager extends CachedManager<Snowflake, StageInstance, StageInstanceResolvable>Manages API methods for StageInstance objects and holds their cache.
readonlycache : Collection<Key, Holds>
The cache of items for this manager.
Inherited from: DataManager
guild : Guild
The guild this manager belongs to
readonlyholds : Constructable<Holds>
The data structure belonging to this manager.
Inherited from: DataManager
create(channel: 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); delete(channel: StageChannelResolvable) : Promise<void>
channel: StageChannelResolvable
Deletes an existing stage instance.
edit(channel: 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); fetch(channel: 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
valueOf() : Collection<Key, Holds>
Inherited from: DataManager