diff options
| author | Zeyla Hellyer <[email protected]> | 2017-05-26 22:22:03 -0700 |
|---|---|---|
| committer | Zeyla Hellyer <[email protected]> | 2017-05-26 22:22:03 -0700 |
| commit | 7dbae6b5261b8f53200090c9eb1bf39a7498f07d (patch) | |
| tree | eb5249878fcab3d3d23f793a7ffeb9e70bf79f85 /src | |
| parent | Fix broken docs links in http module (diff) | |
| download | serenity-7dbae6b5261b8f53200090c9eb1bf39a7498f07d.tar.xz serenity-7dbae6b5261b8f53200090c9eb1bf39a7498f07d.zip | |
Add VerificationLevel::Higher
A new verification level was added for guilds with a value of 4, which
means "Must have a verified phone on their Discord account."
Diffstat (limited to 'src')
| -rw-r--r-- | src/model/guild/mod.rs | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/src/model/guild/mod.rs b/src/model/guild/mod.rs index a3d37d0..aa33737 100644 --- a/src/model/guild/mod.rs +++ b/src/model/guild/mod.rs @@ -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, } ); @@ -1357,6 +1359,7 @@ impl VerificationLevel { VerificationLevel::Low => 1, VerificationLevel::Medium => 2, VerificationLevel::High => 3, + VerificationLevel::Higher => 4, } } } |