Overview
Pycord uses custom enum classes throughout the library. These enums provide type-safe values for various Discord concepts.Status Enums
Status
Status
Represents a user’s online status.Values:
online- Online status (“online”)offline- Offline status (“offline”)idle- Idle status (“idle”)dnd- Do not disturb status (“dnd”)do_not_disturb- Alias for dnd (“dnd”)invisible- Invisible status (“invisible”)streaming- Streaming status (“streaming”)
ActivityType
ActivityType
Represents the type of activity.Values:
unknown= -1playing= 0streaming= 1listening= 2watching= 3custom= 4competing= 5
Channel Enums
ChannelType
ChannelType
Represents the type of channel.Values:
text= 0 - Text channelprivate= 1 - Private DM channelvoice= 2 - Voice channelgroup= 3 - Group DM channelcategory= 4 - Category channelnews= 5 - News/announcement channelnews_thread= 10 - News threadpublic_thread= 11 - Public threadprivate_thread= 12 - Private threadstage_voice= 13 - Stage voice channeldirectory= 14 - Directory channelforum= 15 - Forum channelmedia= 16 - Media channel
VideoQualityMode
VideoQualityMode
Represents the video quality mode for voice channels.Values:
auto= 1 - Discord chooses quality for optimal performancefull= 2 - 720p video quality
Message Enums
MessageType
MessageType
Represents the type of message.Values:
default= 0 - Default messagerecipient_add= 1recipient_remove= 2call= 3channel_name_change= 4channel_icon_change= 5pins_add= 6new_member= 7premium_guild_subscription= 8premium_guild_tier_1= 9premium_guild_tier_2= 10premium_guild_tier_3= 11channel_follow_add= 12guild_stream= 13thread_created= 18reply= 19 - Reply to another messageapplication_command= 20 - Slash command responsethread_starter_message= 21context_menu_command= 23auto_moderation_action= 24role_subscription_purchase= 25poll_result= 46
Voice Enums
SpeakingState
SpeakingState
Represents the speaking state in voice.Values:
none= 0 - Not speakingvoice= 1 - Speaking with voicesoundshare= 2 - Soundshare (playing audio)priority= 4 - Priority speaking
VoiceRegion
VoiceRegion
Represents available voice regions.Values:
us_west= “us-west”us_east= “us-east”us_south= “us-south”us_central= “us-central”eu_west= “eu-west”eu_central= “eu-central”singapore= “singapore”london= “london”sydney= “sydney”amsterdam= “amsterdam”frankfurt= “frankfurt”brazil= “brazil”hongkong= “hongkong”russia= “russia”japan= “japan”southafrica= “southafrica”south_korea= “south-korea”india= “india”europe= “europe”dubai= “dubai”- And various VIP regions…
Guild Enums
VerificationLevel
VerificationLevel
Represents the verification level of a guild.Values:
none= 0 - No verification requiredlow= 1 - Must have verified emailmedium= 2 - Must be registered for 5+ minuteshigh= 3 - Must be a member for 10+ minuteshighest= 4 - Must have verified phone number
ContentFilter
ContentFilter
Represents the content filter level for explicit content.Values:
disabled= 0 - No filteringno_role= 1 - Filter members without rolesall_members= 2 - Filter all members
NotificationLevel
NotificationLevel
Represents the default notification level for a guild.Values:
all_messages= 0 - Notify for all messagesonly_mentions= 1 - Notify only for mentions
NSFWLevel
NSFWLevel
Represents the NSFW level of a guild.Values:
default= 0explicit= 1safe= 2age_restricted= 3
Component Enums
ComponentType
ComponentType
Represents the type of component.Values:
action_row= 1 - Action row containerbutton= 2 - Button componentstring_select= 3 - String select menuselect= 3 - Alias for string_select (deprecated)input_text= 4 - Text inputuser_select= 5 - User select menurole_select= 6 - Role select menumentionable_select= 7 - Mentionable select menuchannel_select= 8 - Channel select menu
ButtonStyle
ButtonStyle
InputTextStyle
InputTextStyle
Represents the style of text input in modals.Values:
short= 1 (aliases:singleline)paragraph= 2 (aliases:multiline,long)
Interaction Enums
InteractionType
InteractionType
Represents the type of interaction.Values:
ping= 1application_command= 2component= 3auto_complete= 4modal_submit= 5
InteractionResponseType
InteractionResponseType
Represents the type of interaction response.Values:
pong= 1channel_message= 4deferred_channel_message= 5deferred_message_update= 6 - For componentsmessage_update= 7 - For componentsauto_complete_result= 8 - For autocompletemodal= 9 - For modal dialogspremium_required= 10
InteractionContextType
InteractionContextType
Represents where an interaction can be used.Values:
guild= 0 - In guild channelsbot_dm= 1 - In bot DMsprivate_channel= 2 - In private channels
Audit Log Enums
AuditLogAction
AuditLogAction
Represents an action in the audit log.Common Values:
guild_update= 1channel_create= 10channel_update= 11channel_delete= 12kick= 20ban= 22unban= 23member_update= 24member_role_update= 25role_create= 30role_update= 31role_delete= 32invite_create= 40message_delete= 72message_bulk_delete= 73- And many more…
AuditLogActionCategory
AuditLogActionCategory
Represents a category of audit log action.Values:
create= 1delete= 2update= 3
User & Permissions Enums
UserFlags
UserFlags
Represents Discord user flags/badges.Values:
staff= 1partner= 2hypesquad= 4bug_hunter= 8hypesquad_bravery= 64hypesquad_brilliance= 128hypesquad_balance= 256early_supporter= 512verified_bot= 65536verified_bot_developer= 131072discord_certified_moderator= 262144active_developer= 4194304
Other Enums
SlashCommandOptionType
SlashCommandOptionType
Represents the type of slash command option.Values:
sub_command= 1sub_command_group= 2string= 3integer= 4boolean= 5user= 6channel= 7role= 8mentionable= 9number= 10attachment= 11
WebhookType
WebhookType
Represents the type of webhook.Values:
incoming= 1channel_follower= 2application= 3
StickerType
StickerType
Represents the type of sticker.Values:
standard= 1 - Official Discord stickerguild= 2 - Custom guild sticker
StickerFormatType
StickerFormatType
Represents the format of a sticker.Values:
png= 1apng= 2 - Animated PNGlottie= 3 - Lottie animationgif= 4
file_extension property that returns the appropriate extension.InviteTarget
InviteTarget
Represents the target of an invite.Values:
unknown= 0stream= 1embedded_application= 2
ThreadArchiveDuration
ThreadArchiveDuration
Represents how long until a thread is automatically archived.Values:
one_hour= 60one_day= 1440three_days= 4320one_week= 10080
IntegrationType
IntegrationType
Represents the application’s integration type.Values:
guild_install= 0 - Installed to guilduser_install= 1 - User-installed app
PollLayoutType
PollLayoutType
Represents the poll’s layout type.Values:
default= 1
