public async Task DoStopRecruitmentAsync()
 {
     if (await _permManager.IsAllowedAsync(PermissionType.ManageRecruitment, Context.User))
     {
         if (RecruitmentService.IsRecruiting)
         {
             _recruitmentService.StopRecruitment();
             await ReplyAsync("Recruitment Process stopped.");
         }
         else
         {
             await ReplyAsync("Recruitment Process isn't running.");
         }
     }
     else
     {
         await ReplyAsync(AppSettings._permissionDeniedResponse);
     }
 }
Exemplo n.º 2
0
 public async Task DoStopRecruitment()
 {
     if (await _permManager.IsAllowedAsync(PermissionType.ManageRecruitment, Context.User))
     {
         if (RecruitmentService.IsRecruiting)
         {
             _recruitmentService.StopRecruitment();
             await ReplyAsync("Recruitment Process stopped.");
         }
         else
         {
             await ReplyAsync("Recruitment Process isn't running.");
         }
     }
     else
     {
         await ReplyAsync(AppSettings.PERMISSION_DENIED_RESPONSE);
     }
 }