Table of Contents

Method WaitForUserTypingAsync

Namespace
DSharpPlus.Interactivity.Extensions
Assembly
DSharpPlus.Interactivity.dll

WaitForUserTypingAsync(DiscordChannel, DiscordUser, TimeSpan?)

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

public static Task<InteractivityResult<TypingStartedEventArgs>> 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<TypingStartedEventArgs>>

Exceptions

InvalidOperationException

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