Table of Contents
API reference

Method WaitForUserTypingAsync

Namespace
DisCatSharp.Interactivity.Extensions
Assembly
DisCatSharp.Interactivity.dll

WaitForUserTypingAsync(DiscordChannel, DiscordUser, TimeSpan?)

Waits for a specific user to start typing in this channel.

public static Task<InteractivityResult<TypingStartEventArgs>> WaitForUserTypingAsync(this DiscordChannel channel, DiscordUser user, TimeSpan? timeoutOverride = null)

Parameters

channel DiscordChannel

The target channel.

user DiscordUser

The target user.

timeoutOverride TimeSpan?

Overrides the timeout set in Timeout

Returns

Task<InteractivityResult<TypingStartEventArgs>>

Exceptions

InvalidOperationException

Thrown if interactivity is not enabled for the client associated with the channel.