public static DiscordGatewayIntent All() { DiscordGatewayIntent intents = 0; foreach (var intent in Enum.GetValues(typeof(DiscordGatewayIntent))) { intents = Add(intents, (DiscordGatewayIntent)intent); } return(intents); }
public DiscordGatewayIntents(DiscordGatewayIntent intents) { Intents = intents; }
public bool Has(DiscordGatewayIntent intent) { return(GatewayIntentCalculator.Has(Intents, intent)); }
public void Remove(DiscordGatewayIntent intent) { Intents = GatewayIntentCalculator.Remove(Intents, intent); }
public void Add(DiscordGatewayIntent intent) { Intents = GatewayIntentCalculator.Add(Intents, intent); }
public static bool Has(DiscordGatewayIntent intents, DiscordGatewayIntent comparison) { return((intents & comparison) == comparison); }
public static DiscordGatewayIntent Remove(DiscordGatewayIntent intents, DiscordGatewayIntent intent) { return((DiscordGatewayIntent)((int)intents - (int)intent)); }
public static DiscordGatewayIntent Add(DiscordGatewayIntent intents, DiscordGatewayIntent intent) { return((DiscordGatewayIntent)((int)intents + (int)intent)); }