Пример #1
0
        public async Task Clear([Remainder] int amount)
        {
            if (amount > 500)
            {
                var limitMessage = await ReplyAsync("The limit is 500");

                await Task.Delay(3000);

                await limitMessage.DeleteAsync();

                return;
            }
            var message = await ReplyAsync(modService.Clear(amount, Context.Channel as SocketTextChannel).Result);

            await Task.Delay(3000);

            await message.DeleteAsync();
        }