Enum SystemChannelFlag

java.lang.Object
java.lang.Enum<SystemChannelFlag>
net.dv8tion.jda.api.entities.guild.SystemChannelFlag
All Implemented Interfaces:
Serializable, Comparable<SystemChannelFlag>

public enum SystemChannelFlag extends Enum<SystemChannelFlag>
Flags which configures a system channel of a Guild.
See Also:
  • Enum Constant Details

    • SUPPRESS_JOIN_NOTIFICATIONS

      public static final SystemChannelFlag SUPPRESS_JOIN_NOTIFICATIONS
      Suppress member join notifications.
    • SUPPRESS_PREMIUM_SUBSCRIPTIONS

      public static final SystemChannelFlag SUPPRESS_PREMIUM_SUBSCRIPTIONS
      Suppress server boost notifications.
    • SUPPRESS_GUILD_REMINDER_NOTIFICATIONS

      public static final SystemChannelFlag SUPPRESS_GUILD_REMINDER_NOTIFICATIONS
      Suppress server setup tips.
    • SUPPRESS_JOIN_NOTIFICATION_REPLIES

      public static final SystemChannelFlag SUPPRESS_JOIN_NOTIFICATION_REPLIES
      Hide member join sticker reply buttons.
    • SUPPRESS_ROLE_SUBSCRIPTION_PURCHASE_NOTIFICATIONS

      public static final SystemChannelFlag SUPPRESS_ROLE_SUBSCRIPTION_PURCHASE_NOTIFICATIONS
      Suppress role subscription purchase and renewal notifications.
    • SUPPRESS_ROLE_SUBSCRIPTION_PURCHASE_NOTIFICATION_REPLIES

      public static final SystemChannelFlag SUPPRESS_ROLE_SUBSCRIPTION_PURCHASE_NOTIFICATION_REPLIES
      Hide role subscription sticker reply buttons.
  • Method Details

    • values

      public static SystemChannelFlag[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      Returns:
      an array containing the constants of this enum type, in the order they are declared
    • valueOf

      public static SystemChannelFlag valueOf(String name)
      Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum type has no constant with the specified name
      NullPointerException - if the argument is null
    • getFlags

      @Nonnull public static EnumSet<SystemChannelFlag> getFlags(int raw)
      Converts a bitmask representation of system channel flags into its EnumSet.
      Parameters:
      raw - The raw bitmask representing the system channel flags
      Returns:
      An EnumSet of system channel flags represented by the input bitmask.
    • getRaw

      public static int getRaw(@Nonnull Collection<SystemChannelFlag> flags)
      Converts a Collection of this class to its respective bitmask representing the same set of system channel flags.
      Parameters:
      flags - A set of system channel flags
      Returns:
      The raw bitmask representing the input flags.