Skip to content

StageInstance

StageInstance ⇐ Base

Represents a Stage Instance in a guild.

Kind: global class
Extends: Base

new StageInstance([data], guildId, client)

Constructs a new instance of a Channel object.

ParamTypeDescription
[data]ObjectThe data for the Stage Instance.
guildIdstringThe ID of the guild the Stage Instance belongs to.
clientClientThe client instance.

stageInstance.guild ⇒

Retrieves the guild associated with this guildId.

Kind: instance property of StageInstance
Returns: The guild object if found, otherwise null.

stageInstance.channel ⇒

Retrieves the channel associated with this object.

Kind: instance property of StageInstance
Returns: The channel object if found, otherwise null.

stageInstance.guildScheduledEvent ⇒ ScheduledEvent | null

Retrieves the scheduled event associated with the guild.

Kind: instance property of StageInstance
Returns: ScheduledEvent | null - The scheduled event object if found, otherwise null.

stageInstance.fetch(options) ⇒ Promise.<StageInstance>

Fetches the stage instance for the given channel ID using the provided options.

Kind: instance method of StageInstance
Returns: Promise.<StageInstance> - A promise that resolves with the fetched stage instance.

ParamTypeDescription
optionsObjectThe options to pass to the fetch request.

stageInstance.edit(options) ⇒ Promise

Edits the stage instance with the given options.

Kind: instance method of StageInstance
Returns: Promise - A promise that resolves when the stage instance is successfully edited.

ParamTypeDescription
optionsObjectThe options to edit the stage instance.

stageInstance.delete(reason) ⇒ Promise.<void>

Deletes the stage instance associated with the channel.

Kind: instance method of StageInstance
Returns: Promise.<void> - - A promise that resolves when the stage instance is deleted.

ParamTypeDescription
reasonstringThe reason for deleting the stage instance.

stageInstance.setTopic(topic, reason) ⇒ Promise

Sets the topic of the current object and provides a reason for the change.

Kind: instance method of StageInstance
Returns: Promise - - A promise that resolves when the topic is successfully set.

ParamTypeDescription
topicstringThe new topic to set.
reasonstringThe reason for changing the topic.

stageInstance.setPrivacyLevel(privacyLevel, reason) ⇒ Promise

Sets the privacy level for the current user.

Kind: instance method of StageInstance
Returns: Promise - - A promise that resolves when the privacy level is successfully set.

ParamTypeDescription
privacyLevelstringThe privacy level to set.
reasonstringThe reason for setting the privacy level.