Esempio n. 1
0
 public static bool GetIsSudo(this SocketCommandContext Context, PokeTradeHubConfig cfg)
 {
     if (cfg.AllowGlobalSudo && cfg.GlobalSudoList.Contains(Context.User.Id.ToString()))
     {
         return(true);
     }
     return(Context.GetHasRole(cfg.DiscordRoleSudo));
 }