示例#1
0
        public async Task PardonUser(SocketGuildUser user)
        {
            //CHECK PERMS
            if (await _modService.CheckPermissions(Context, ModService.Case.Ban, Context.Guild.CurrentUser, user) == false)
            {
                return;
            }

            if (await _modService.PardonUser(user, Context.Guild, Context.User))
            {
                await ReplyAsync("", embed : Utility.ResultFeedback(Utility.GreenSuccessEmbed,
                                                                    Utility.SuccessLevelEmoji[0], "Successfully pardoned user"));

                return;
            }
            await ReplyAsync("", embed : Utility.ResultFeedback(Utility.RedFailiureEmbed,
                                                                Utility.SuccessLevelEmoji[2], "Can't pardon user"));
        }