SlackClient.SetDNDAsync(String, CancellationToken) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Set do not disturb
public virtual System.Threading.Tasks.Task<Azure.Connectors.Sdk.Slack.Models.SetDNDResponse> SetDNDAsync(string numberOfMinutes = default, System.Threading.CancellationToken cancellationToken = default);
abstract member SetDNDAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Connectors.Sdk.Slack.Models.SetDNDResponse>
override this.SetDNDAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Connectors.Sdk.Slack.Models.SetDNDResponse>
Public Overridable Function SetDNDAsync (Optional numberOfMinutes As String = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Task(Of SetDNDResponse)
Parameters
- numberOfMinutes
- String
Number of minutes
- cancellationToken
- CancellationToken
Cancellation token.
Returns
The Set do not disturb response.
Remarks
Set the do not disturb status for the user.