DiscordLua
discorddiscord
v1.2.9
Install

enums

Enum
On this page

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

Values

discord.enums.Colors
Colors
Colors. Use the symbolic name in bot code rather than the raw value.
discord.enums.Events
Events
Events. Use the symbolic name in bot code rather than the raw value.
discord.enums.ChannelType
ChannelType
Channel Type. Use the symbolic name in bot code rather than the raw value.
discord.enums.MessageType
MessageType
Message Type. Use the symbolic name in bot code rather than the raw value.
discord.enums.MessageFlags
MessageFlags
Message Flags. Use the symbolic name in bot code rather than the raw value.
discord.enums.ChannelFlags
ChannelFlags
Channel Flags. Use the symbolic name in bot code rather than the raw value.
discord.enums.SystemChannelFlags
SystemChannelFlags
System Channel Flags. Use the symbolic name in bot code rather than the raw value.
discord.enums.InteractionType
InteractionType
Interaction Type. Use the symbolic name in bot code rather than the raw value.
discord.enums.InteractionResponseType
InteractionResponseType
Interaction Response Type. Use the symbolic name in bot code rather than the raw value.
discord.enums.ApplicationCommandType
ApplicationCommandType
Application Command Type. Use the symbolic name in bot code rather than the raw value.
discord.enums.ApplicationCommandOptionType
ApplicationCommandOptionType
Application Command Option Type. Use the symbolic name in bot code rather than the raw value.
discord.enums.ComponentType
ComponentType
Component Type. Use the symbolic name in bot code rather than the raw value.
discord.enums.ButtonStyle
ButtonStyle
Button Style. Use the symbolic name in bot code rather than the raw value.
discord.enums.TextInputStyle
TextInputStyle
Text Input Style. Use the symbolic name in bot code rather than the raw value.
discord.enums.ActivityType
ActivityType
Activity Type. Use the symbolic name in bot code rather than the raw value.
discord.enums.PermissionFlagsBits
PermissionFlagsBits
Permission Flags Bits. Use the symbolic name in bot code rather than the raw value.
discord.enums.UserFlags
UserFlags
User Flags. Use the symbolic name in bot code rather than the raw value.
discord.enums.ActivityFlags
ActivityFlags
Activity Flags. Use the symbolic name in bot code rather than the raw value.
discord.enums.ApplicationFlags
ApplicationFlags
Application Flags. Use the symbolic name in bot code rather than the raw value.
discord.enums.AttachmentFlags
AttachmentFlags
Attachment Flags. Use the symbolic name in bot code rather than the raw value.
discord.enums.GuildMemberFlags
GuildMemberFlags
Guild Member Flags. Use the symbolic name in bot code rather than the raw value.
discord.enums.InviteFlags
InviteFlags
Invite Flags. Use the symbolic name in bot code rather than the raw value.
discord.enums.RoleFlags
RoleFlags
Role Flags. Use the symbolic name in bot code rather than the raw value.
discord.enums.SKUFlags
SKUFlags
SKUFlags. Use the symbolic name in bot code rather than the raw value.
discord.enums.ThreadMemberFlags
ThreadMemberFlags
Thread Member Flags. Use the symbolic name in bot code rather than the raw value.
discord.enums.OverwriteType
OverwriteType
Overwrite Type. Use the symbolic name in bot code rather than the raw value.
discord.enums.AuditLogEvent
AuditLogEvent
Audit Log Event. Use the symbolic name in bot code rather than the raw value.
discord.enums.Partials
Partials
Partials. Use the symbolic name in bot code rather than the raw value.
discord.enums.StickerType
StickerType
Sticker Type. Use the symbolic name in bot code rather than the raw value.
discord.enums.StickerFormatType
StickerFormatType
Sticker Format Type. Use the symbolic name in bot code rather than the raw value.
discord.enums.InviteTargetType
InviteTargetType
Invite Target Type. Use the symbolic name in bot code rather than the raw value.
discord.enums.GuildNSFWLevel
GuildNSFWLevel
Guild NSFWLevel. Use the symbolic name in bot code rather than the raw value.
discord.enums.GuildVerificationLevel
GuildVerificationLevel
Guild Verification Level. Use the symbolic name in bot code rather than the raw value.
discord.enums.GuildExplicitContentFilter
GuildExplicitContentFilter
Guild Explicit Content Filter. Use the symbolic name in bot code rather than the raw value.
discord.enums.GuildDefaultMessageNotifications
GuildDefaultMessageNotifications
Guild Default Message Notifications. Use the symbolic name in bot code rather than the raw value.
discord.enums.GuildMFALevel
GuildMFALevel
Guild MFALevel. Use the symbolic name in bot code rather than the raw value.
discord.enums.GuildPremiumTier
GuildPremiumTier
Guild Premium Tier. Use the symbolic name in bot code rather than the raw value.
discord.enums.VideoQualityMode
VideoQualityMode
Video Quality Mode. Use the symbolic name in bot code rather than the raw value.
discord.enums.ForumLayoutType
ForumLayoutType
Forum Layout Type. Use the symbolic name in bot code rather than the raw value.
discord.enums.SortOrderType
SortOrderType
Sort Order Type. Use the symbolic name in bot code rather than the raw value.
discord.enums.AutoModerationRuleEventType
AutoModerationRuleEventType
Auto Moderation Rule Event Type. Use the symbolic name in bot code rather than the raw value.
discord.enums.AutoModerationRuleTriggerType
AutoModerationRuleTriggerType
Auto Moderation Rule Trigger Type. Use the symbolic name in bot code rather than the raw value.
discord.enums.AutoModerationActionType
AutoModerationActionType
Auto Moderation Action Type. Use the symbolic name in bot code rather than the raw value.
discord.enums.GuildScheduledEventStatus
GuildScheduledEventStatus
Guild Scheduled Event Status. Use the symbolic name in bot code rather than the raw value.
discord.enums.GuildScheduledEventEntityType
GuildScheduledEventEntityType
Guild Scheduled Event Entity Type. Use the symbolic name in bot code rather than the raw value.
discord.enums.GuildScheduledEventPrivacyLevel
GuildScheduledEventPrivacyLevel
Guild Scheduled Event Privacy Level. Use the symbolic name in bot code rather than the raw value.
discord.enums.EntitlementType
EntitlementType
Entitlement Type. Use the symbolic name in bot code rather than the raw value.
discord.enums.SKUType
SKUType
SKUType. Use the symbolic name in bot code rather than the raw value.
discord.enums.VoiceConnectionStatus
VoiceConnectionStatus
Voice Connection Status. Use the symbolic name in bot code rather than the raw value.
discord.enums.AudioPlayerStatus
AudioPlayerStatus
Audio Player Status. Use the symbolic name in bot code rather than the raw value.
discord.enums.Status
Status
Status. Use the symbolic name in bot code rather than the raw value.
discord.enums.WebSocketShardStatus
WebSocketShardStatus
Web Socket Shard Status. Use the symbolic name in bot code rather than the raw value.
discord.enums.WebSocketShardEvents
WebSocketShardEvents
Web Socket Shard Events. Use the symbolic name in bot code rather than the raw value.
discord.enums.SpeakingFlags
SpeakingFlags
Speaking Flags. Use the symbolic name in bot code rather than the raw value.
discord.enums.PollLayoutType
PollLayoutType
Poll Layout Type. Use the symbolic name in bot code rather than the raw value.
discord.enums.OAuth2Scopes
OAuth2Scopes
OAuth2Scopes. Use the symbolic name in bot code rather than the raw value.
discord.enums.Locale
Locale
Locale. Use the symbolic name in bot code rather than the raw value.
discord.enums.StageInstancePrivacyLevel
StageInstancePrivacyLevel
Stage Instance Privacy Level. Use the symbolic name in bot code rather than the raw value.
discord.enums.SubscriptionStatus
SubscriptionStatus
Subscription Status. Use the symbolic name in bot code rather than the raw value.
discord.enums.ApplicationCommandPermissionType
ApplicationCommandPermissionType
Application Command Permission Type. Use the symbolic name in bot code rather than the raw value.
discord.enums.InteractionContextType
InteractionContextType
Interaction Context Type. Use the symbolic name in bot code rather than the raw value.
discord.enums.ApplicationIntegrationType
ApplicationIntegrationType
Application Integration Type. Use the symbolic name in bot code rather than the raw value.
discord.enums.GatewayOpcodes
GatewayOpcodes
Gateway Opcodes. Use the symbolic name in bot code rather than the raw value.
discord.enums.GatewayCloseCodes
GatewayCloseCodes
Gateway Close Codes. Use the symbolic name in bot code rather than the raw value.
discord.enums.InviteType
InviteType
Invite Type. Use the symbolic name in bot code rather than the raw value.
discord.enums.WebhookType
WebhookType
Webhook Type. Use the symbolic name in bot code rather than the raw value.
discord.enums.MessageActivityType
MessageActivityType
Message Activity Type. Use the symbolic name in bot code rather than the raw value.
discord.enums.MessageReferenceType
MessageReferenceType
Message Reference Type. Use the symbolic name in bot code rather than the raw value.
discord.enums.ReactionType
ReactionType
Reaction Type. Use the symbolic name in bot code rather than the raw value.
discord.enums.VoiceChannelEffectSendAnimationType
VoiceChannelEffectSendAnimationType
Voice Channel Effect Send Animation Type. Use the symbolic name in bot code rather than the raw value.
discord.enums.AutoModerationRuleKeywordPresetType
AutoModerationRuleKeywordPresetType
Auto Moderation Rule Keyword Preset Type. Use the symbolic name in bot code rather than the raw value.
discord.enums.EntryPointCommandHandlerType
EntryPointCommandHandlerType
Entry Point Command Handler Type. Use the symbolic name in bot code rather than the raw value.
discord.enums.ApplicationRoleConnectionMetadataType
ApplicationRoleConnectionMetadataType
Application Role Connection Metadata Type. Use the symbolic name in bot code rather than the raw value.
discord.enums.ApplicationWebhookEventStatus
ApplicationWebhookEventStatus
Application Webhook Event Status. Use the symbolic name in bot code rather than the raw value.
discord.enums.ApplicationWebhookEventType
ApplicationWebhookEventType
Application Webhook Event Type. Use the symbolic name in bot code rather than the raw value.
discord.enums.GuildOnboardingMode
GuildOnboardingMode
Guild Onboarding Mode. Use the symbolic name in bot code rather than the raw value.
discord.enums.GuildOnboardingPromptType
GuildOnboardingPromptType
Guild Onboarding Prompt Type. Use the symbolic name in bot code rather than the raw value.
discord.enums.GuildWidgetStyle
GuildWidgetStyle
Guild Widget Style. Use the symbolic name in bot code rather than the raw value.
discord.enums.GuildSystemChannelFlags
SystemChannelFlags
Guild System Channel Flags. Use the symbolic name in bot code rather than the raw value.
discord.enums.IntegrationExpireBehavior
IntegrationExpireBehavior
Integration Expire Behavior. Use the symbolic name in bot code rather than the raw value.
discord.enums.TeamMemberMembershipState
TeamMemberMembershipState
Team Member Membership State. Use the symbolic name in bot code rather than the raw value.
discord.enums.TeamMemberRole
TeamMemberRole
Team Member Role. Use the symbolic name in bot code rather than the raw value.
discord.enums.ThreadAutoArchiveDuration
ThreadAutoArchiveDuration
Thread Auto Archive Duration. Use the symbolic name in bot code rather than the raw value.
discord.enums.NameplatePalette
NameplatePalette
Nameplate Palette. Use the symbolic name in bot code rather than the raw value.
discord.enums.GuildScheduledEventRecurrenceRuleFrequency
GuildScheduledEventRecurrenceRuleFrequency
Guild Scheduled Event Recurrence Rule Frequency. Use the symbolic name in bot code rather than the raw value.
discord.enums.GuildScheduledEventRecurrenceRuleWeekday
GuildScheduledEventRecurrenceRuleWeekday
Guild Scheduled Event Recurrence Rule Weekday. Use the symbolic name in bot code rather than the raw value.
discord.enums.GuildScheduledEventRecurrenceRuleMonth
GuildScheduledEventRecurrenceRuleMonth
Guild Scheduled Event Recurrence Rule Month. Use the symbolic name in bot code rather than the raw value.
discord.enums.ActivityLocationKind
ActivityLocationKind
Activity Location Kind. Use the symbolic name in bot code rather than the raw value.
discord.enums.ApplicationCommandOptionAllowedChannelTypes
ApplicationCommandOptionAllowedChannelTypes
Application Command Option Allowed Channel Types. Use the symbolic name in bot code rather than the raw value.
discord.enums.GuildFeature
GuildFeature
Guild Feature. Use the symbolic name in bot code rather than the raw value.

Usage

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

Example

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