Skip to main content

Class SocketStageChannel

Represents a stage channel received over the gateway.

Assembly: Discord.Net.WebSocket.dll​
View Source​
Declaration
public class SocketStageChannel : SocketVoiceChannel, ISocketAudioChannel, 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; }

IsSpeaker​

Returns true if the current user is a speaker within the stage, otherwise false.

View Source​
Declaration
public bool IsSpeaker { get; }

Speakers​

Gets a collection of users who are speakers within the stage.

View Source​
Declaration
public IReadOnlyCollection<SocketGuildUser> Speakers { get; }

Methods​

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.

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.

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.

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​