public static Task <MessageReceivedEventArgs> WaitForMessageAsync(this IMessageChannel channel, Predicate <MessageReceivedEventArgs> predicate = null, TimeSpan timeout = default, CancellationToken cancellationToken = default) { var extension = channel.GetDiscordClient().GetInteractivity(); return(extension.WaitForMessageAsync(channel.Id, predicate, timeout, cancellationToken)); }
public static Task RunMenuAsync(this IMessageChannel channel, MenuBase menu, TimeSpan timeout = default, CancellationToken cancellationToken = default) { var extension = channel.GetDiscordClient().GetInteractivity(); return(extension.RunMenuAsync(channel.Id, menu, timeout, cancellationToken)); }