예제 #1
0
        public static async Task <bool> ConfirmWithReply(this ICommandContext ctx, string expectedReply)
        {
            var msg = await ctx.AwaitMessage(ctx.Channel, ctx.User, timeout : TimeSpan.FromMinutes(1));

            return(string.Equals(msg.Content, expectedReply, StringComparison.InvariantCultureIgnoreCase));
        }