Enum SystemChannelFlag

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Comparable<SystemChannelFlag>

    public enum SystemChannelFlag
    extends java.lang.Enum<SystemChannelFlag>
    System channel flags for various server notifications.
    • Enum Constant Detail

      • 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.
    • Method Detail

      • values

        public static SystemChannelFlag[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (SystemChannelFlag c : SystemChannelFlag.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static SystemChannelFlag valueOf​(java.lang.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:
        java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
        java.lang.NullPointerException - if the argument is null
      • asInt

        public int asInt()
        Gets the integer value of the flag.
        Returns:
        The integer value of the flag.