StageInstance
classe · Source
Represents a stage instance.
Extends: Base
Properties
id
The stage instance's id Source
guildId
The id of the guild associated with the stage channel Source
channelId
The id of the channel associated with the stage channel Source
topic
The topic of the stage instance Source
privacyLevel
The privacy level of the stage instance Source
discoverableDisabled
Whether or not stage discovery is disabled Source
guildScheduledEventId
The associated guild scheduled event id of this stage instance Source
channel
The stage channel associated with this stage instance Source
guildScheduledEvent
The associated guild scheduled event of this stage instance Source
deleted
Whether or not the stage instance has been deleted Source
guild
The guild this stage instance belongs to Source
createdTimestamp
The timestamp this stage instances was created at Source
createdAt
The time this stage instance was created at Source
client
The client that instantiated this Source
Methods
edit
Edits this stage instance. Parameters
| Name | Type | Description |
|---|---|---|
options | StageInstanceEditOptions | The options to edit the stage instance |
Returns: Promise<StageInstance>
// Edit a stage instance
stageInstance.edit({ topic: 'new topic' })
.then(stageInstance => console.log(stageInstance))
.catch(console.error)delete
Deletes this stage instance. Returns: Promise<StageInstance>
// Delete a stage instance
stageInstance.delete()
.then(stageInstance => console.log(stageInstance))
.catch(console.error);setTopic
Sets the topic of this stage instance. Parameters
| Name | Type | Description |
|---|---|---|
topic | string | The topic for the stage instance |
Returns: Promise<StageInstance>
// Set topic of a stage instance
stageInstance.setTopic('new topic')
.then(stageInstance => console.log(`Set the topic to: ${stageInstance.topic}`))
.catch(console.error);