Exemple #1
0
 public async Task CloseGate()
 {
     if (!CanModify(Context.User, Context.Guild.OwnerId))
     {
         await ReplyAsync(Sentences.OnlyManage(Context.Guild.Id));
     }
     else if (await Close(Context.Guild.Id))
     {
         await ReplyAsync(Sentences.GateClosed(Context.Guild.Id));
     }
     else
     {
         await ReplyAsync(Sentences.NoGate(Context.Guild.Id));
     }
 }