DiscordLua
discorddiscord
v1.2.4
Install

UserFlags

Enum
On this page

discord.UserFlags lists the named constants for this enumeration. Prefer these names over hardcoded literals.

Values

discord.UserFlags.Staff
1 << 0
Staff. Use the symbolic name in bot code rather than the raw value.
discord.UserFlags.Partner
1 << 1
Partner. Use the symbolic name in bot code rather than the raw value.
discord.UserFlags.Hypesquad
1 << 2
Hypesquad. Use the symbolic name in bot code rather than the raw value.
discord.UserFlags.BugHunterLevel1
1 << 3
Bug Hunter Level1. Use the symbolic name in bot code rather than the raw value.
discord.UserFlags.HypesquadOnlineHouse1
1 << 6
Hypesquad Online House1. Use the symbolic name in bot code rather than the raw value.
discord.UserFlags.HypesquadOnlineHouse2
1 << 7
Hypesquad Online House2. Use the symbolic name in bot code rather than the raw value.
discord.UserFlags.HypesquadOnlineHouse3
1 << 8
Hypesquad Online House3. Use the symbolic name in bot code rather than the raw value.
discord.UserFlags.PremiumEarlySupporter
1 << 9
Premium Early Supporter. Use the symbolic name in bot code rather than the raw value.
discord.UserFlags.TeamPseudoUser
1 << 10
Team Pseudo User. Use the symbolic name in bot code rather than the raw value.
discord.UserFlags.BugHunterLevel2
1 << 14
Bug Hunter Level2. Use the symbolic name in bot code rather than the raw value.
discord.UserFlags.VerifiedBot
1 << 16
Verified Bot. Use the symbolic name in bot code rather than the raw value.
discord.UserFlags.VerifiedDeveloper
1 << 17
Verified Developer. Use the symbolic name in bot code rather than the raw value.
discord.UserFlags.CertifiedModerator
1 << 18
Certified Moderator. Use the symbolic name in bot code rather than the raw value.
discord.UserFlags.BotHTTPInteractions
1 << 19
Bot HTTPInteractions. Use the symbolic name in bot code rather than the raw value.
discord.UserFlags.ActiveDeveloper
1 << 22
Active Developer. Use the symbolic name in bot code rather than the raw value.

Usage

Read members as discord.UserFlags.Name. Do not hard-code numeric literals when a symbolic name exists.

Example

lua
local discord = require("discord")
print(discord.UserFlags.Staff)
Search Ctrl K Navigate Open Esc