Method SetSpeakingAsync
| Improve this Doc View SourceSetSpeakingAsync(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. |
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. |