示例#1
0
        public async Task SkipRaidRecovery(SocketUser user = null)
        {
            if (!RaidRecoveryTracker.Exists(Context.Channel.Id))
            {
                await BetterReplyAsync($"The raid recovery system is not enabled. Use `@{Context.Guild.CurrentUser.Username} rr enable` to enable.");

                return;
            }

            if (user == null)
            {
                await BetterReplyAsync("You must provide a user to skip them from being banned.", parameters : "user null");

                return;
            }

            if (RaidRecoveryTracker.SkipUserToBan(Context.Channel.Id, user.Id))
            {
                await BetterReplyAsync($"{BetterUserFormat(user)} will be skipped and **not** banned.", parameters : $"{user} ({user.Id})");
                await LogMessageEmbedAsync("Raid recovery system", $"{BetterUserFormat(user)} will be skipped and **not** banned.");
            }
            else
            {
                await BetterReplyAsync($"{BetterUserFormat(user)} was not suspected and will **not** be banned.", parameters : $"{user} ({user.Id})");
            }
        }