Package discord4j.core.object.entity
Enum Class PartialMember.Flag
- All Implemented Interfaces:
Serializable
,Comparable<PartialMember.Flag>
,Constable
- Enclosing class:
- PartialMember
Describes the flags of a member in a guild.
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionMember has completed onboarding
Note: this flag allows a member who does not meet verification requirements to participate in a server.Member has completed onboardingMember has left and rejoined the guildMember has started onboarding -
Method Summary
Modifier and TypeMethodDescriptionint
getFlag()
Gets the flag value as represented by Discord.int
getValue()
Gets the underlying value as represented by Discord.static EnumSet<PartialMember.Flag>
of
(long value) Gets the flags of member.static PartialMember.Flag
Returns the enum constant of this class with the specified name.static PartialMember.Flag[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
DID_REJOIN
Member has left and rejoined the guild -
COMPLETED_ONBOARDING
Member has completed onboarding -
BYPASSES_VERIFICATION
Member has completed onboarding
Note: this flag allows a member who does not meet verification requirements to participate in a server. -
STARTED_ONBOARDING
Member has started onboarding
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified nameNullPointerException
- if the argument is null
-
getValue
public int getValue()Gets the underlying value as represented by Discord.- Returns:
- The underlying value as represented by Discord.
-
getFlag
public int getFlag()Gets the flag value as represented by Discord.- Returns:
- The flag value as represented by Discord.
-
of
Gets the flags of member. It is guaranteed that invokinggetValue()
from the returned enum will be equal (==
) to the suppliedvalue
.- Parameters:
value
- The flags value as represented by Discord.- Returns:
- The
EnumSet
of flags.
-