Beispiel #1
0
        protected async Task <SocketMessage?> NextMessageAsync(TimeSpan?timeOut        = null, bool catchAny = false,
                                                               CancellationToken token = default)
        {
            var standard = new Standard <SocketMessage>();

            if (!catchAny)
            {
                standard.AddCriterion(new EnsureFromUser());
            }
            return(await NextMessageAsync(standard, timeOut, token));
        }