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
DiscordChannelThe target channel.
user
DiscordUserThe target user.
timeoutOverride
TimeSpan?Overrides the timeout set in Timeout
Returns
Exceptions
- InvalidOperationException
Thrown if interactivity is not enabled for the client associated with the channel.