Skip to content

Commit

Permalink
Add VerificationLevel::Higher
Browse files Browse the repository at this point in the history
A new verification level was added for guilds with a value of 4, which
means "Must have a verified phone on their Discord account."
  • Loading branch information
Zeyla Hellyer committed May 27, 2017
1 parent a5b3972 commit 7dbae6b
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions src/model/guild/mod.rs
Expand Up @@ -1341,12 +1341,14 @@ enum_number!(
VerificationLevel {
/// Does not require any verification.
None = 0,
/// Low verification level.
/// Must have a verified email on the user's Discord account.
Low = 1,
/// Medium verification level.
/// Must also be a registered user on Discord for longer than 5 minutes.
Medium = 2,
/// High verification level.
/// Must also be a member of the guild for longer than 10 minutes.
High = 3,
/// Must have a verified phone on the user's Discord account.
Higher = 4,
}
);

Expand All @@ -1357,6 +1359,7 @@ impl VerificationLevel {
VerificationLevel::Low => 1,
VerificationLevel::Medium => 2,
VerificationLevel::High => 3,
VerificationLevel::Higher => 4,
}
}
}

0 comments on commit 7dbae6b

Please sign in to comment.