enums
EnumOn this page
discord.enums lists the named constants for this enumeration. Prefer these names over hardcoded literals.
Values
discord.enums.ColorsColorsColors. Use the symbolic name in bot code rather than the raw value.
discord.enums.EventsEventsEvents. Use the symbolic name in bot code rather than the raw value.
discord.enums.ChannelTypeChannelTypeChannel Type. Use the symbolic name in bot code rather than the raw value.
discord.enums.MessageTypeMessageTypeMessage Type. Use the symbolic name in bot code rather than the raw value.
discord.enums.MessageFlagsMessageFlagsMessage Flags. Use the symbolic name in bot code rather than the raw value.
discord.enums.ChannelFlagsChannelFlagsChannel Flags. Use the symbolic name in bot code rather than the raw value.
discord.enums.SystemChannelFlagsSystemChannelFlagsSystem Channel Flags. Use the symbolic name in bot code rather than the raw value.
discord.enums.InteractionTypeInteractionTypeInteraction Type. Use the symbolic name in bot code rather than the raw value.
discord.enums.InteractionResponseTypeInteractionResponseTypeInteraction Response Type. Use the symbolic name in bot code rather than the raw value.
discord.enums.ApplicationCommandTypeApplicationCommandTypeApplication Command Type. Use the symbolic name in bot code rather than the raw value.
discord.enums.ApplicationCommandOptionTypeApplicationCommandOptionTypeApplication Command Option Type. Use the symbolic name in bot code rather than the raw value.
discord.enums.ComponentTypeComponentTypeComponent Type. Use the symbolic name in bot code rather than the raw value.
discord.enums.ButtonStyleButtonStyleButton Style. Use the symbolic name in bot code rather than the raw value.
discord.enums.TextInputStyleTextInputStyleText Input Style. Use the symbolic name in bot code rather than the raw value.
discord.enums.ActivityTypeActivityTypeActivity Type. Use the symbolic name in bot code rather than the raw value.
discord.enums.PermissionFlagsBitsPermissionFlagsBitsPermission Flags Bits. Use the symbolic name in bot code rather than the raw value.
discord.enums.UserFlagsUserFlagsUser Flags. Use the symbolic name in bot code rather than the raw value.
discord.enums.ActivityFlagsActivityFlagsActivity Flags. Use the symbolic name in bot code rather than the raw value.
discord.enums.ApplicationFlagsApplicationFlagsApplication Flags. Use the symbolic name in bot code rather than the raw value.
discord.enums.AttachmentFlagsAttachmentFlagsAttachment Flags. Use the symbolic name in bot code rather than the raw value.
discord.enums.GuildMemberFlagsGuildMemberFlagsGuild Member Flags. Use the symbolic name in bot code rather than the raw value.
discord.enums.InviteFlagsInviteFlagsInvite Flags. Use the symbolic name in bot code rather than the raw value.
discord.enums.RoleFlagsRoleFlagsRole Flags. Use the symbolic name in bot code rather than the raw value.
discord.enums.SKUFlagsSKUFlagsSKUFlags. Use the symbolic name in bot code rather than the raw value.
discord.enums.ThreadMemberFlagsThreadMemberFlagsThread Member Flags. Use the symbolic name in bot code rather than the raw value.
discord.enums.OverwriteTypeOverwriteTypeOverwrite Type. Use the symbolic name in bot code rather than the raw value.
discord.enums.AuditLogEventAuditLogEventAudit Log Event. Use the symbolic name in bot code rather than the raw value.
discord.enums.PartialsPartialsPartials. Use the symbolic name in bot code rather than the raw value.
discord.enums.StickerTypeStickerTypeSticker Type. Use the symbolic name in bot code rather than the raw value.
discord.enums.StickerFormatTypeStickerFormatTypeSticker Format Type. Use the symbolic name in bot code rather than the raw value.
discord.enums.InviteTargetTypeInviteTargetTypeInvite Target Type. Use the symbolic name in bot code rather than the raw value.
discord.enums.GuildNSFWLevelGuildNSFWLevelGuild NSFWLevel. Use the symbolic name in bot code rather than the raw value.
discord.enums.GuildVerificationLevelGuildVerificationLevelGuild Verification Level. Use the symbolic name in bot code rather than the raw value.
discord.enums.GuildExplicitContentFilterGuildExplicitContentFilterGuild Explicit Content Filter. Use the symbolic name in bot code rather than the raw value.
discord.enums.GuildDefaultMessageNotificationsGuildDefaultMessageNotificationsGuild Default Message Notifications. Use the symbolic name in bot code rather than the raw value.
discord.enums.GuildMFALevelGuildMFALevelGuild MFALevel. Use the symbolic name in bot code rather than the raw value.
discord.enums.GuildPremiumTierGuildPremiumTierGuild Premium Tier. Use the symbolic name in bot code rather than the raw value.
discord.enums.VideoQualityModeVideoQualityModeVideo Quality Mode. Use the symbolic name in bot code rather than the raw value.
discord.enums.ForumLayoutTypeForumLayoutTypeForum Layout Type. Use the symbolic name in bot code rather than the raw value.
discord.enums.SortOrderTypeSortOrderTypeSort Order Type. Use the symbolic name in bot code rather than the raw value.
discord.enums.AutoModerationRuleEventTypeAutoModerationRuleEventTypeAuto Moderation Rule Event Type. Use the symbolic name in bot code rather than the raw value.
discord.enums.AutoModerationRuleTriggerTypeAutoModerationRuleTriggerTypeAuto Moderation Rule Trigger Type. Use the symbolic name in bot code rather than the raw value.
discord.enums.AutoModerationActionTypeAutoModerationActionTypeAuto Moderation Action Type. Use the symbolic name in bot code rather than the raw value.
discord.enums.GuildScheduledEventStatusGuildScheduledEventStatusGuild Scheduled Event Status. Use the symbolic name in bot code rather than the raw value.
discord.enums.GuildScheduledEventEntityTypeGuildScheduledEventEntityTypeGuild Scheduled Event Entity Type. Use the symbolic name in bot code rather than the raw value.
discord.enums.GuildScheduledEventPrivacyLevelGuildScheduledEventPrivacyLevelGuild Scheduled Event Privacy Level. Use the symbolic name in bot code rather than the raw value.
discord.enums.EntitlementTypeEntitlementTypeEntitlement Type. Use the symbolic name in bot code rather than the raw value.
discord.enums.SKUTypeSKUTypeSKUType. Use the symbolic name in bot code rather than the raw value.
discord.enums.VoiceConnectionStatusVoiceConnectionStatusVoice Connection Status. Use the symbolic name in bot code rather than the raw value.
discord.enums.AudioPlayerStatusAudioPlayerStatusAudio Player Status. Use the symbolic name in bot code rather than the raw value.
discord.enums.StatusStatusStatus. Use the symbolic name in bot code rather than the raw value.
discord.enums.WebSocketShardStatusWebSocketShardStatusWeb Socket Shard Status. Use the symbolic name in bot code rather than the raw value.
discord.enums.WebSocketShardEventsWebSocketShardEventsWeb Socket Shard Events. Use the symbolic name in bot code rather than the raw value.
discord.enums.SpeakingFlagsSpeakingFlagsSpeaking Flags. Use the symbolic name in bot code rather than the raw value.
discord.enums.PollLayoutTypePollLayoutTypePoll Layout Type. Use the symbolic name in bot code rather than the raw value.
discord.enums.OAuth2ScopesOAuth2ScopesOAuth2Scopes. Use the symbolic name in bot code rather than the raw value.
discord.enums.LocaleLocaleLocale. Use the symbolic name in bot code rather than the raw value.
discord.enums.StageInstancePrivacyLevelStageInstancePrivacyLevelStage Instance Privacy Level. Use the symbolic name in bot code rather than the raw value.
discord.enums.SubscriptionStatusSubscriptionStatusSubscription Status. Use the symbolic name in bot code rather than the raw value.
discord.enums.ApplicationCommandPermissionTypeApplicationCommandPermissionTypeApplication Command Permission Type. Use the symbolic name in bot code rather than the raw value.
discord.enums.InteractionContextTypeInteractionContextTypeInteraction Context Type. Use the symbolic name in bot code rather than the raw value.
discord.enums.ApplicationIntegrationTypeApplicationIntegrationTypeApplication Integration Type. Use the symbolic name in bot code rather than the raw value.
discord.enums.GatewayOpcodesGatewayOpcodesGateway Opcodes. Use the symbolic name in bot code rather than the raw value.
discord.enums.GatewayCloseCodesGatewayCloseCodesGateway Close Codes. Use the symbolic name in bot code rather than the raw value.
discord.enums.InviteTypeInviteTypeInvite Type. Use the symbolic name in bot code rather than the raw value.
discord.enums.WebhookTypeWebhookTypeWebhook Type. Use the symbolic name in bot code rather than the raw value.
discord.enums.MessageActivityTypeMessageActivityTypeMessage Activity Type. Use the symbolic name in bot code rather than the raw value.
discord.enums.MessageReferenceTypeMessageReferenceTypeMessage Reference Type. Use the symbolic name in bot code rather than the raw value.
discord.enums.ReactionTypeReactionTypeReaction Type. Use the symbolic name in bot code rather than the raw value.
discord.enums.VoiceChannelEffectSendAnimationTypeVoiceChannelEffectSendAnimationTypeVoice Channel Effect Send Animation Type. Use the symbolic name in bot code rather than the raw value.
discord.enums.AutoModerationRuleKeywordPresetTypeAutoModerationRuleKeywordPresetTypeAuto Moderation Rule Keyword Preset Type. Use the symbolic name in bot code rather than the raw value.
discord.enums.EntryPointCommandHandlerTypeEntryPointCommandHandlerTypeEntry Point Command Handler Type. Use the symbolic name in bot code rather than the raw value.
discord.enums.ApplicationRoleConnectionMetadataTypeApplicationRoleConnectionMetadataTypeApplication Role Connection Metadata Type. Use the symbolic name in bot code rather than the raw value.
discord.enums.ApplicationWebhookEventStatusApplicationWebhookEventStatusApplication Webhook Event Status. Use the symbolic name in bot code rather than the raw value.
discord.enums.ApplicationWebhookEventTypeApplicationWebhookEventTypeApplication Webhook Event Type. Use the symbolic name in bot code rather than the raw value.
discord.enums.GuildOnboardingModeGuildOnboardingModeGuild Onboarding Mode. Use the symbolic name in bot code rather than the raw value.
discord.enums.GuildOnboardingPromptTypeGuildOnboardingPromptTypeGuild Onboarding Prompt Type. Use the symbolic name in bot code rather than the raw value.
discord.enums.GuildWidgetStyleGuildWidgetStyleGuild Widget Style. Use the symbolic name in bot code rather than the raw value.
discord.enums.GuildSystemChannelFlagsSystemChannelFlagsGuild System Channel Flags. Use the symbolic name in bot code rather than the raw value.
discord.enums.IntegrationExpireBehaviorIntegrationExpireBehaviorIntegration Expire Behavior. Use the symbolic name in bot code rather than the raw value.
discord.enums.TeamMemberMembershipStateTeamMemberMembershipStateTeam Member Membership State. Use the symbolic name in bot code rather than the raw value.
discord.enums.TeamMemberRoleTeamMemberRoleTeam Member Role. Use the symbolic name in bot code rather than the raw value.
discord.enums.ThreadAutoArchiveDurationThreadAutoArchiveDurationThread Auto Archive Duration. Use the symbolic name in bot code rather than the raw value.
discord.enums.NameplatePaletteNameplatePaletteNameplate Palette. Use the symbolic name in bot code rather than the raw value.
discord.enums.GuildScheduledEventRecurrenceRuleFrequencyGuildScheduledEventRecurrenceRuleFrequencyGuild Scheduled Event Recurrence Rule Frequency. Use the symbolic name in bot code rather than the raw value.
discord.enums.GuildScheduledEventRecurrenceRuleWeekdayGuildScheduledEventRecurrenceRuleWeekdayGuild Scheduled Event Recurrence Rule Weekday. Use the symbolic name in bot code rather than the raw value.
discord.enums.GuildScheduledEventRecurrenceRuleMonthGuildScheduledEventRecurrenceRuleMonthGuild Scheduled Event Recurrence Rule Month. Use the symbolic name in bot code rather than the raw value.
discord.enums.ActivityLocationKindActivityLocationKindActivity Location Kind. Use the symbolic name in bot code rather than the raw value.
discord.enums.ApplicationCommandOptionAllowedChannelTypesApplicationCommandOptionAllowedChannelTypesApplication Command Option Allowed Channel Types. Use the symbolic name in bot code rather than the raw value.
discord.enums.GuildFeatureGuildFeatureGuild 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
local discord = require("discord")
print(discord.enums.Colors)