Table of Contents

Method TimeoutAsync

Namespace
DSharpPlus.Entities
Assembly
DSharpPlus.dll

TimeoutAsync(DateTimeOffset?, string)

Times-out a member and restricts their ability to send messages, add reactions, speak in threads, and join voice channels.

public Task TimeoutAsync(DateTimeOffset? until, string reason = null)

Parameters

until DateTimeOffset?

How long the timeout should last. Set to null or a time in the past to remove the timeout.

reason string

Why this member is being restricted.

Returns

Task