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)); }
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)); }