Enum Member.MemberFlag

java.lang.Object
java.lang.Enum<Member.MemberFlag>
net.dv8tion.jda.api.entities.Member.MemberFlag
All Implemented Interfaces:
Serializable, Comparable<Member.MemberFlag>
Enclosing interface:
Member

public static enum Member.MemberFlag extends Enum<Member.MemberFlag>
Member flags indicating information about the membership state.
  • Enum Constant Details

    • DID_REJOIN

      public static final Member.MemberFlag DID_REJOIN
      The Member has left and rejoined the guild
    • COMPLETED_ONBOARDING

      public static final Member.MemberFlag COMPLETED_ONBOARDING
      The Member has completed the onboarding process
    • BYPASSES_VERIFICATION

      public static final Member.MemberFlag BYPASSES_VERIFICATION
      The Member bypasses guild verification requirements
    • STARTED_ONBOARDING

      public static final Member.MemberFlag STARTED_ONBOARDING
      The Member has started the onboarding process
  • Method Details

    • values

      public static Member.MemberFlag[] 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 Member.MemberFlag 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
    • getRaw

      public int getRaw()
      The raw value used by Discord for this flag
      Returns:
      The raw value
    • isModifiable

      public boolean isModifiable()
      Whether this flag can be modified by the client
      Returns:
      True, if this flag can be modified
    • fromRaw

      @Nonnull public static EnumSet<Member.MemberFlag> fromRaw(int raw)
      The Flags represented by the provided raw value.
      If the provided raw value is 0 this will return an empty EnumSet.
      Parameters:
      raw - The raw value
      Returns:
      EnumSet containing the flags represented by the provided raw value
    • toRaw

      public static int toRaw(@Nonnull Collection<Member.MemberFlag> flags)
      The raw value of the provided Flags.
      If the provided set is empty this will return 0.
      Parameters:
      flags - The flags
      Returns:
      The raw value of the provided flags