class StageInstance
extends
Baseexport class StageInstance extends Base
Represents a stage instance.
readonlyStageChannel | null channel :
The stage channel associated with this stage instance
Snowflake channelId :
The id of the channel associated with the stage channel
readonlyDate createdAt :
The time this stage instance was created at
readonlynumber createdTimestamp :
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
Snowflake guildId :
The id of the guild associated with the stage channel
readonlyGuildScheduledEvent | null guildScheduledEvent :
The associated guild scheduled event of this stage instance
optionalSnowflake guildScheduledEventId? :
The associated guild scheduled event id of this stage instance
Snowflake id :
The stage instance's id
StageInstancePrivacyLevel privacyLevel :
The privacy level of the stage instance
string topic :
The topic of the stage instance
deletePromise<StageInstance> () :
Deletes this stage instance.
Examples:
// Delete a stage instance
stageInstance.delete()
.then(stageInstance => console.log(stageInstance))
.catch(console.error);
editoptions: 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)
setTopictopic: 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);