-
-
Notifications
You must be signed in to change notification settings - Fork 40
Added missing flags and documentation to 'UserFlags.cs'. #17
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
13 commits
Select commit
Hold shift + click to select a range
3e2507a
Added missing flags to UserFlags.cs
Red-K0 b3ad48d
Casts formatted and changed to (ulong)
Red-K0 bf900de
PascalCase applied
Red-K0 3b08493
<summary> spacing fixed, newlines added.
Red-K0 7f22119
Newlines added, 0 padding removed
Red-K0 692b0b3
Alignment removed
Red-K0 f9c5da0
Extra space removed
Red-K0 830c2c7
uL suffix added
Red-K0 324a87f
Minor fixes
Red-K0 bd2289b
Casing for 'Private' fixed to 'private'
Red-K0 f870d3a
PremiumPromoDismissed Renamed
Red-K0 c655b5a
SYSTEM flag redocumented.
Red-K0 4985a67
Spammer flag redocumented.
Red-K0 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,22 +1,193 @@ | ||
| namespace NetCord; | ||
|
|
||
| [Flags] | ||
| public enum UserFlags : uint | ||
| public enum UserFlags : ulong | ||
| { | ||
| DiscordEmployee = 1 << 0, | ||
| PartneredServerOwner = 1 << 1, | ||
| HypeSquadEvents = 1 << 2, | ||
| BugHunterLevel1 = 1 << 3, | ||
| HouseBravery = 1 << 6, | ||
| HouseBrilliance = 1 << 7, | ||
| HouseBalance = 1 << 8, | ||
| EarlySupporter = 1 << 9, | ||
| TeamUser = 1 << 10, | ||
| BugHunterLevel2 = 1 << 14, | ||
| VerifiedBot = 1 << 16, | ||
| EarlyVerifiedBotDeveloper = 1 << 17, | ||
| DiscordCertifiedModerator = 1 << 18, | ||
| BotHttpInteractions = 1 << 19, | ||
| Spammer = 1 << 20, | ||
| ActiveDeveloper = 1 << 22, | ||
| /// <summary> | ||
| /// User is a Discord employee. | ||
| /// </summary> | ||
| Staff = 1uL << 0, | ||
|
|
||
| /// <summary> | ||
| /// User is a Discord partner. | ||
| /// </summary> | ||
| Partner = 1uL << 1, | ||
|
|
||
| /// <summary> | ||
| /// User has the 'HypeSquad Events' badge. | ||
| /// </summary> | ||
| HypeSquad = 1uL << 2, | ||
|
|
||
| /// <summary> | ||
| /// User has the 'Bug Hunter' badge. | ||
| /// </summary> | ||
| BugHunterLevel1 = 1uL << 3, | ||
|
|
||
| /// <summary> | ||
| /// Undocumented and private. User has SMS recovery for 2FA enabled. | ||
| /// </summary> | ||
| MfaSms = 1uL << 4, | ||
|
|
||
| /// <summary> | ||
| /// Undocumented and private. User dismissed the Nitro promotion. | ||
| /// </summary> | ||
| PremiumPromotionDismissed = 1uL << 5, | ||
|
|
||
| // HypeSquad House Flags | ||
|
|
||
| /// <summary> | ||
| /// User is a House of Bravery Member. | ||
| /// </summary> | ||
| HypeSquadOnlineHouse1 = 1uL << 6, | ||
|
|
||
| /// <summary> | ||
| /// User is a House of Brilliance Member. | ||
| /// </summary> | ||
| HypeSquadOnlineHouse = 1uL << 7, | ||
|
|
||
| /// <summary> | ||
| /// User is a House of Balance Member. | ||
| /// </summary> | ||
| HypeSquadOnlineHouse3 = 1uL << 8, | ||
|
|
||
| /// <summary> | ||
| /// User has the 'Early Supporter' badge. | ||
| /// </summary> | ||
| PremiumEarlySupporter = 1uL << 9, | ||
|
|
||
| /// <summary> | ||
| /// User is a team. See <see href="https://discord.com/developers/docs/topics/teams"/>. | ||
| /// </summary> | ||
| TeamPseudoUser = 1uL << 10, | ||
|
|
||
| /// <summary> | ||
| /// Undocumented and private. User has a pending partner/verification application. | ||
| /// </summary> | ||
| InternalApplication = 1uL << 11, | ||
|
|
||
| /// <summary> | ||
| /// Undocumented. User is an Official Discord System user (part of the urgent message system). | ||
| /// </summary> | ||
| System = 1uL << 12, | ||
|
|
||
| /// <summary> | ||
| /// Undocumented and private. User has unread messages from Discord. | ||
| /// </summary> | ||
| HasUnreadUrgentMessages = 1uL << 13, | ||
|
|
||
| /// <summary> | ||
| /// User has the 'Golden Bug Hunter' badge. | ||
| /// </summary> | ||
| BugHunterLevel2 = 1uL << 14, | ||
|
|
||
| /// <summary> | ||
| /// Undocumented and private. User is pending deletion for being underage in DOB prompt. | ||
| /// </summary> | ||
| UnderageDeleted = 1uL << 15, | ||
|
|
||
| // Verification Flags | ||
|
|
||
| /// <summary> | ||
| /// User is a verified bot. See <see href="https://support.discord.com/hc/articles/360040720412"/>. | ||
| /// </summary> | ||
| VerifiedBot = 1uL << 16, | ||
|
|
||
| /// <summary> | ||
| /// User has the 'Early Verified Developer' badge. | ||
| /// </summary> | ||
| VerifiedDeveloper = 1uL << 17, | ||
|
|
||
| /// <summary> | ||
| /// User has the 'Moderator Program Alumni' badge. | ||
| /// </summary> | ||
| CertifiedModerator = 1uL << 18, | ||
|
|
||
| /// <summary> | ||
| /// Undocumented. User is a bot with an interactions endpoint. | ||
| /// </summary> | ||
| BotHttpInteractions = 1uL << 19, | ||
|
|
||
| /// <summary> | ||
| /// Undocumented. User's account is flagged for spamming. | ||
| /// </summary> | ||
| Spammer = 1uL << 20, | ||
|
|
||
| /// <summary> | ||
| /// Undocumented and private. User's Nitro features are disabled. | ||
| /// </summary> | ||
| DisablePremium = 1uL << 21, | ||
|
|
||
| /// <summary> | ||
| /// User has the 'Active Developer' badge. See <see href="https://support-dev.discord.com/hc/articles/10113997751447"/>. | ||
| /// </summary> | ||
| ActiveDeveloper = 1uL << 22, | ||
|
|
||
| /// <summary> | ||
| /// Undocumented and private. User's account has a high global rate limit. | ||
| /// </summary> | ||
| HighGlobalRateLimit = 1uL << 33, | ||
|
|
||
| /// <summary> | ||
| /// Undocumented and private. User's account is deleted. | ||
| /// </summary> | ||
| Deleted = 1uL << 34, | ||
|
|
||
| /// <summary> | ||
| /// Undocumented and private. User's account is disabled for suspicious activity. | ||
| /// </summary> | ||
| DisabledSuspiciousActivity = 1uL << 35, | ||
|
|
||
| /// <summary> | ||
| /// Undocumented and private. User's account was manually deleted. | ||
| /// </summary> | ||
| SelfDeleted = 1uL << 36, | ||
|
|
||
| /// <summary> | ||
| /// Undocumented. User has a manually selected discriminator. | ||
| /// </summary> | ||
| PremiumDiscriminator = 1uL << 37, | ||
|
|
||
| // Client Usage Flags | ||
|
|
||
| /// <summary> | ||
| /// Undocumented. User has used the desktop client. | ||
| /// </summary> | ||
| UsedDesktopClient = 1uL << 38, | ||
|
|
||
| /// <summary> | ||
| /// Undocumented. User has used the web client. | ||
| /// </summary> | ||
| UsedWebClient = 1uL << 39, | ||
|
|
||
| /// <summary> | ||
| /// Undocumented. User has used the mobile client. | ||
| /// </summary> | ||
| UsedMobileClient = 1uL << 40, | ||
|
|
||
| /// <summary> | ||
| /// Undocumented and private. User's account is temporarily or permanently disabled. | ||
| /// </summary> | ||
| Disabled = 1uL << 41, | ||
|
|
||
| /// <summary> | ||
| /// Undocumented. User has a verified email. | ||
| /// </summary> | ||
| VerifiedEmail = 1uL << 43, | ||
|
|
||
| /// <summary> | ||
| /// Undocumented and private. User is quarantined. See <see href="https://support.discord.com/hc/articles/6461420677527"/>. | ||
| /// </summary> | ||
| Quarantined = 1uL << 44, | ||
|
|
||
| // Collaborator Flags | ||
|
|
||
| /// <summary> | ||
| /// Undocumented. User is a collaborator and has staff permissions. | ||
| /// </summary> | ||
| Collaborator = 1uL << 50, | ||
|
|
||
| /// <summary> | ||
| /// Undocumented. User is a restricted collaborator and has staff permissions. | ||
| /// </summary> | ||
| RestrictedCollaborator = 1uL << 51, | ||
| } | ||
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.