class StageInstance
extends
Baseexport class StageInstance extends BaseRepresents a stage instance.
readonlychannel : StageChannel | null
The stage channel associated with this stage instance
channelId : Snowflake
The id of the channel associated with the stage channel
readonlycreatedAt : Date
The time this stage instance was created at
readonlycreatedTimestamp : number
The timestamp this stage instances was created at
See https://github.com/discord/discord-api-docs/pull/4296 for more information
Deprecated
Whether or not stage discovery is disabled
guildId : Snowflake
The id of the guild associated with the stage channel
readonlyguildScheduledEvent : GuildScheduledEvent | null
The associated guild scheduled event of this stage instance
optionalguildScheduledEventId? : Snowflake
The associated guild scheduled event id of this stage instance
id : Snowflake
The stage instance's id
privacyLevel : StageInstancePrivacyLevel
The privacy level of the stage instance
topic : string
The topic of the stage instance
delete() : Promise<StageInstance>
Deletes this stage instance.
Examples:
// Delete a stage instance
stageInstance.delete()
.then(stageInstance => console.log(stageInstance))
.catch(console.error); edit(options: StageInstanceEditOptions) : Promise<StageInstance>
options: StageInstanceEditOptions
Edits this stage instance.
Examples:
// Edit a stage instance
stageInstance.edit({ topic: 'new topic' })
.then(stageInstance => console.log(stageInstance))
.catch(console.error) setTopic(topic: string) : Promise<StageInstance>
topic: string
Sets the topic of this stage instance.
Examples:
// Set topic of a stage instance
stageInstance.setTopic('new topic')
.then(stageInstance => console.log(`Set the topic to: ${stageInstance.topic}`))
.catch(console.error);