Skip to main content

Class RestStageChannel

Represents a REST-based stage channel in a guild.

Assembly: Discord.Net.Rest.dll​
View Source​
Declaration
public class RestStageChannel : RestVoiceChannel, IUpdateable, IRestAudioChannel, IStageChannel, IVoiceChannel, INestedChannel, IGuildChannel, IDeletable, IAudioChannel, IChannel, ISnowflakeEntity, IEntity<ulong>, IMentionable

Properties​

Topic​

Gets the topic of the Stage instance.

View Source​
Declaration
public string Topic { get; }

PrivacyLevel​

Gets the Discord.StagePrivacyLevel of the current stage.

View Source​
Declaration
public StagePrivacyLevel? PrivacyLevel { get; }

IsDiscoverableDisabled​

Gets whether or not stage discovery is disabled.

View Source​
Declaration
public bool? IsDiscoverableDisabled { get; }

IsLive​

Gets whether or not the stage is live.

View Source​
Declaration
public bool IsLive { get; }

Methods​

ModifyInstanceAsync(Action<StageInstanceProperties>, RequestOptions)​

Modifies the current stage instance.

View Source​
Declaration
public async Task ModifyInstanceAsync(Action<StageInstanceProperties> func, RequestOptions options = null)
Returns​

System.Threading.Tasks.Task: A task that represents the asynchronous modify operation.

Parameters​
TypeNameDescription
System.Action<Discord.StageInstanceProperties>funcThe properties to modify the stage instance with.
Discord.RequestOptionsoptionsThe options to be used when sending the request.

StartStageAsync(String, StagePrivacyLevel, RequestOptions)​

Starts the stage, creating a stage instance.

View Source​
Declaration
public async Task StartStageAsync(string topic, StagePrivacyLevel privacyLevel = StagePrivacyLevel.GuildOnly, RequestOptions options = null)
Returns​

System.Threading.Tasks.Task: A task that represents the asynchronous start operation.

Parameters​
TypeNameDescription
System.StringtopicThe topic for the stage/
Discord.StagePrivacyLevelprivacyLevelThe privacy level of the stage.
Discord.RequestOptionsoptionsThe options to be used when sending the request.

StopStageAsync(RequestOptions)​

Stops the stage, deleting the stage instance.

View Source​
Declaration
public async Task StopStageAsync(RequestOptions options = null)
Returns​

System.Threading.Tasks.Task: A task that represents the asynchronous stop operation.

Parameters​
TypeNameDescription
Discord.RequestOptionsoptionsThe options to be used when sending the request.

UpdateAsync(RequestOptions)​

Updates this object's properties with its current state.

View Source​
Declaration
public override async Task UpdateAsync(RequestOptions options = null)
Returns​

System.Threading.Tasks.Task

Parameters​
TypeNameDescription
Discord.RequestOptionsoptionsThe options to be used when sending the request.

RequestToSpeakAsync(RequestOptions)​

Indicates that the bot would like to speak within a stage channel.

View Source​
Declaration
public Task RequestToSpeakAsync(RequestOptions options = null)
Returns​

System.Threading.Tasks.Task: A task that represents the asynchronous request to speak operation.

Parameters​
TypeNameDescription
Discord.RequestOptionsoptionsThe options to be used when sending the request.

BecomeSpeakerAsync(RequestOptions)​

Makes the current user become a speaker within a stage.

View Source​
Declaration
public Task BecomeSpeakerAsync(RequestOptions options = null)
Returns​

System.Threading.Tasks.Task: A task that represents the asynchronous speaker modify operation.

Parameters​
TypeNameDescription
Discord.RequestOptionsoptionsThe options to be used when sending the request.

StopSpeakingAsync(RequestOptions)​

Makes the current user a listener.

View Source​
Declaration
public Task StopSpeakingAsync(RequestOptions options = null)
Returns​

System.Threading.Tasks.Task: A task that represents the asynchronous stop operation.

Parameters​
TypeNameDescription
Discord.RequestOptionsoptionsThe options to be used when sending the request.

MoveToSpeakerAsync(IGuildUser, RequestOptions)​

Makes a user a speaker within a stage.

View Source​
Declaration
public Task MoveToSpeakerAsync(IGuildUser user, RequestOptions options = null)
Returns​

System.Threading.Tasks.Task: A task that represents the asynchronous move operation.

Parameters​
TypeNameDescription
Discord.IGuildUseruserThe user to make the speaker.
Discord.RequestOptionsoptionsThe options to be used when sending the request.

RemoveFromSpeakerAsync(IGuildUser, RequestOptions)​

Removes a user from speaking.

View Source​
Declaration
public Task RemoveFromSpeakerAsync(IGuildUser user, RequestOptions options = null)
Returns​

System.Threading.Tasks.Task: A task that represents the asynchronous remove operation.

Parameters​
TypeNameDescription
Discord.IGuildUseruserThe user to remove from speaking.
Discord.RequestOptionsoptionsThe options to be used when sending the request.

Implements​