Discore
Show / Hide Table of Contents

Method SetSpeakingAsync

| Improve this Doc View Source

SetSpeakingAsync(bool)

Sets the speaking state of this connection.

Does nothing if this connection is invalid.
Declaration
public Task SetSpeakingAsync(bool speaking)
Parameters
Type Name Description
bool speaking
Returns
Type Description
Task
Exceptions
Type Condition
DiscordWebSocketException

Thrown if the state fails to set because of a WebSocket error.

InvalidOperationException

Thrown if the voice connection is not fully connected yet.

| Improve this Doc View Source

SetSpeakingAsync(SpeakingFlag)

Sets the speaking state of this connection.

Does nothing if this connection is invalid.
Declaration
public Task SetSpeakingAsync(SpeakingFlag flags)
Parameters
Type Name Description
SpeakingFlag flags
Returns
Type Description
Task
Exceptions
Type Condition
DiscordWebSocketException

Thrown if the state fails to set because of a WebSocket error.

InvalidOperationException

Thrown if the voice connection is not fully connected yet.

  • Improve this Doc
  • View Source
In This Article
Back to top Generated by DocFX