Package net.dv8tion.jda.api.entities
Enum Member.MemberFlag
- All Implemented Interfaces:
Serializable
,Comparable<Member.MemberFlag>
- Enclosing interface:
Member
Member flags indicating information about the membership state.
-
Enum Constant Summary
Enum ConstantDescriptionThe Member bypasses guild verification requirementsThe Member has completed the onboarding processThe Member has left and rejoined the guildThe Member has started the onboarding process -
Method Summary
Modifier and TypeMethodDescriptionstatic EnumSet
<Member.MemberFlag> fromRaw
(int raw) TheFlags
represented by the provided raw value.int
getRaw()
The raw value used by Discord for this flagboolean
Whether this flag can be modified by the clientstatic int
toRaw
(Collection<Member.MemberFlag> flags) The raw value of the providedFlags
.static Member.MemberFlag
Returns the enum constant of this type with the specified name.static Member.MemberFlag[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
DID_REJOIN
The Member has left and rejoined the guild -
COMPLETED_ONBOARDING
The Member has completed the onboarding process -
BYPASSES_VERIFICATION
The Member bypasses guild verification requirements -
STARTED_ONBOARDING
The Member has started the onboarding process
-
-
Method Details
-
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
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 nameNullPointerException
- 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
TheFlags
represented by the provided raw value.
If the provided raw value is0
this will return an emptyEnumSet
.- Parameters:
raw
- The raw value- Returns:
- EnumSet containing the flags represented by the provided raw value
-
toRaw
- Parameters:
flags
- The flags- Returns:
- The raw value of the provided flags
-