Enums

discord_http.enums module

class discord_http.enums.ApplicationCommandType(value, names=None, *, module=None, qualname=None, type=None, start=1, boundary=None)[source]

Bases: BaseEnum

chat_input = 1
message = 3
user = 2
class discord_http.enums.AuditLogType(value, names=None, *, module=None, qualname=None, type=None, start=1, boundary=None)[source]

Bases: BaseEnum

application_command_permission_update = 121
auto_moderation_block_message = 143
auto_moderation_flag_to_channel = 144
auto_moderation_quarantine_user = 146
auto_moderation_rule_create = 140
auto_moderation_rule_delete = 142
auto_moderation_rule_update = 141
auto_moderation_user_communication_disabled = 145
bot_add = 28
channel_create = 10
channel_delete = 12
channel_overwrite_create = 13
channel_overwrite_delete = 15
channel_overwrite_update = 14
channel_update = 11
creator_monetization_request_created = 150
creator_monetization_terms_accepted = 151
emoji_create = 60
emoji_delete = 62
emoji_update = 61
guild_scheduled_event_create = 100
guild_scheduled_event_delete = 102
guild_scheduled_event_exception_create = 200
guild_scheduled_event_exception_delete = 202
guild_scheduled_event_exception_update = 201
guild_scheduled_event_update = 101
guild_update = 1
home_settings_create = 190
home_settings_update = 191
integration_create = 80
integration_delete = 82
integration_update = 81
invite_create = 40
invite_delete = 42
invite_update = 41
member_ban_add = 22
member_ban_remove = 23
member_disconnect = 27
member_kick = 20
member_move = 26
member_prune = 21
member_role_update = 25
member_update = 24
message_bulk_delete = 73
message_delete = 72
message_pin = 74
message_unpin = 75
onboarding_create = 166
onboarding_prompt_create = 163
onboarding_prompt_delete = 165
onboarding_prompt_update = 164
onboarding_update = 167
role_create = 30
role_delete = 32
role_update = 31
stage_instance_create = 83
stage_instance_delete = 85
stage_instance_update = 84
sticker_create = 90
sticker_delete = 92
sticker_update = 91
property target_type
thread_create = 110
thread_delete = 112
thread_update = 111
unknown = -1
voice_channel_status_create = 192
voice_channel_status_delete = 193
webhook_create = 50
webhook_delete = 52
webhook_update = 51
class discord_http.enums.AutoModRuleActionType(value, names=None, *, module=None, qualname=None, type=None, start=1, boundary=None)[source]

Bases: BaseEnum

block_member_interactions = 4
block_message = 1
send_alert_message = 2
timeout = 3
class discord_http.enums.AutoModRuleEventType(value, names=None, *, module=None, qualname=None, type=None, start=1, boundary=None)[source]

Bases: BaseEnum

member_update = 2
message_send = 1
class discord_http.enums.AutoModRulePresetType(value, names=None, *, module=None, qualname=None, type=None, start=1, boundary=None)[source]

Bases: BaseEnum

profanity = 1
sexual_content = 2
slurs = 3
class discord_http.enums.AutoModRuleTriggerType(value, names=None, *, module=None, qualname=None, type=None, start=1, boundary=None)[source]

Bases: BaseEnum

keyword = 1
keyword_preset = 4
member_profile = 6
mention_spam = 5
spam = 3
class discord_http.enums.BaseEnum(value, names=None, *, module=None, qualname=None, type=None, start=1, boundary=None)[source]

Bases: Enum

Enum, but with more comparison operators to make life easier

classmethod random() Self[source]

Enum: Return a random enum

class discord_http.enums.ButtonStyles(value, names=None, *, module=None, qualname=None, type=None, start=1, boundary=None)[source]

Bases: BaseEnum

blurple = 1
danger = 4
destructive = 4
gray = 2
green = 3
grey = 2
premium = 6
primary = 1
red = 4
secondary = 2
success = 3
url = 5
class discord_http.enums.ChannelType(value, names=None, *, module=None, qualname=None, type=None, start=1, boundary=None)[source]

Bases: BaseEnum

dm = 1
group_dm = 3
guild_category = 4
guild_directory = 14
guild_forum = 15
guild_media = 16
guild_news = 5
guild_news_thread = 10
guild_private_thread = 12
guild_public_thread = 11
guild_stage_voice = 13
guild_store = 6
guild_text = 0
guild_voice = 2
unknown = -1
class discord_http.enums.CommandOptionType(value, names=None, *, module=None, qualname=None, type=None, start=1, boundary=None)[source]

Bases: BaseEnum

attachment = 11
boolean = 5
channel = 7
integer = 4
mentionable = 9
number = 10
role = 8
string = 3
sub_command = 1
sub_command_group = 2
user = 6
class discord_http.enums.ComponentType(value, names=None, *, module=None, qualname=None, type=None, start=1, boundary=None)[source]

Bases: BaseEnum

action_row = 1
button = 2
channel_select = 8
mentionable_select = 7
role_select = 6
string_select = 3
text_input = 4
user_select = 5
class discord_http.enums.ContentFilterLevel(value, names=None, *, module=None, qualname=None, type=None, start=1, boundary=None)[source]

Bases: BaseEnum

all_members = 2
disabled = 0
members_without_roles = 1
class discord_http.enums.DefaultAvatarType(value, names=None, *, module=None, qualname=None, type=None, start=1, boundary=None)[source]

Bases: BaseEnum

blurple = 0
gray = 1
green = 2
grey = 1
orange = 3
pink = 5
red = 4
class discord_http.enums.DefaultNotificationLevel(value, names=None, *, module=None, qualname=None, type=None, start=1, boundary=None)[source]

Bases: BaseEnum

all_messages = 0
only_mentions = 1
class discord_http.enums.EntitlementOwnerType(value, names=None, *, module=None, qualname=None, type=None, start=1, boundary=None)[source]

Bases: BaseEnum

guild = 1
user = 2
class discord_http.enums.EntitlementType(value, names=None, *, module=None, qualname=None, type=None, start=1, boundary=None)[source]

Bases: BaseEnum

application_subscription = 8
developer_gift = 3
free_purchase = 5
premium_purchase = 7
premium_subscription = 2
purchase = 1
test_mode_purchase = 4
user_gift = 6
class discord_http.enums.ExpireBehaviour(value, names=None, *, module=None, qualname=None, type=None, start=1, boundary=None)[source]

Bases: BaseEnum

kick = 1
remove_role = 0
class discord_http.enums.ForumLayoutType(value, names=None, *, module=None, qualname=None, type=None, start=1, boundary=None)[source]

Bases: BaseEnum

gallery_view = 2
list_view = 1
not_set = 0
class discord_http.enums.IntegrationType(value, names=None, *, module=None, qualname=None, type=None, start=1, boundary=None)[source]

Bases: BaseEnum

guild = 0
user = 1
class discord_http.enums.InteractionType(value, names=None, *, module=None, qualname=None, type=None, start=1, boundary=None)[source]

Bases: BaseEnum

application_command = 2
application_command_autocomplete = 4
message_component = 3
modal_submit = 5
ping = 1
class discord_http.enums.InviteType(value, names=None, *, module=None, qualname=None, type=None, start=1, boundary=None)[source]

Bases: BaseEnum

dm = 2
group = 1
guild = 0
unknown = 3
class discord_http.enums.MFALevel(value, names=None, *, module=None, qualname=None, type=None, start=1, boundary=None)[source]

Bases: BaseEnum

elevated = 1
none = 0
class discord_http.enums.MessageReferenceType(value, names=None, *, module=None, qualname=None, type=None, start=1, boundary=None)[source]

Bases: BaseEnum

default = 0
forward = 1
class discord_http.enums.MessageType(value, names=None, *, module=None, qualname=None, type=None, start=1, boundary=None)[source]

Bases: BaseEnum

auto_moderation_action = 24
call = 3
channel_follow_add = 12
channel_icon_change = 5
channel_name_change = 4
channel_pinned_message = 6
chat_input_command = 20
context_menu_command = 23
default = 0
guild_application_premium_subscription = 32
guild_boost = 8
guild_boost_tier_1 = 9
guild_boost_tier_2 = 10
guild_boost_tier_3 = 11
guild_discovery_disqualified = 14
guild_discovery_grace_period_final_warning = 17
guild_discovery_grace_period_initial_warning = 16
guild_discovery_requalified = 15
guild_incident_alert_mode_disabled = 37
guild_incident_alert_mode_enabled = 36
guild_incident_report_false_alarm = 39
guild_incident_report_raid = 38
guild_invite_reminder = 22
interaction_premium_upsell = 26
poll_result = 46
purchase_notification = 44
recipient_add = 1
recipient_remove = 2
reply = 19
role_subscription_purchase = 25
stage_end = 28
stage_speaker = 29
stage_start = 27
stage_topic = 31
thread_created = 18
thread_starter_message = 21
user_join = 7
class discord_http.enums.PermissionType(value, names=None, *, module=None, qualname=None, type=None, start=1, boundary=None)[source]

Bases: BaseEnum

member = 1
role = 0
class discord_http.enums.PrivacyLevelType(value, names=None, *, module=None, qualname=None, type=None, start=1, boundary=None)[source]

Bases: BaseEnum

guild_only = 2
public = 1
class discord_http.enums.ReactionType(value, names=None, *, module=None, qualname=None, type=None, start=1, boundary=None)[source]

Bases: BaseEnum

burst = 1
normal = 0
class discord_http.enums.ResponseType(value, names=None, *, module=None, qualname=None, type=None, start=1, boundary=None)[source]

Bases: BaseEnum

application_command_autocomplete_result = 8
channel_message_with_source = 4
deferred_channel_message_with_source = 5
deferred_update_message = 6
launch_activity = 12
modal = 9
pong = 1
premium_required = 10
update_message = 7
class discord_http.enums.SKUType(value, names=None, *, module=None, qualname=None, type=None, start=1, boundary=None)[source]

Bases: BaseEnum

consumable = 3
durable = 2
subscription = 5
subscription_group = 6
class discord_http.enums.ScheduledEventEntityType(value, names=None, *, module=None, qualname=None, type=None, start=1, boundary=None)[source]

Bases: BaseEnum

external = 3
stage_instance = 1
voice = 2
class discord_http.enums.ScheduledEventStatusType(value, names=None, *, module=None, qualname=None, type=None, start=1, boundary=None)[source]

Bases: BaseEnum

active = 2
canceled = 4
completed = 3
scheduled = 1
class discord_http.enums.SortOrderType(value, names=None, *, module=None, qualname=None, type=None, start=1, boundary=None)[source]

Bases: BaseEnum

creation_date = 1
latest_activity = 0
class discord_http.enums.StickerFormatType(value, names=None, *, module=None, qualname=None, type=None, start=1, boundary=None)[source]

Bases: BaseEnum

apng = 2
gif = 4
lottie = 3
png = 1
class discord_http.enums.StickerType(value, names=None, *, module=None, qualname=None, type=None, start=1, boundary=None)[source]

Bases: BaseEnum

guild = 2
standard = 1
class discord_http.enums.TextStyles(value, names=None, *, module=None, qualname=None, type=None, start=1, boundary=None)[source]

Bases: BaseEnum

paragraph = 2
short = 1
class discord_http.enums.VerificationLevel(value, names=None, *, module=None, qualname=None, type=None, start=1, boundary=None)[source]

Bases: BaseEnum

high = 3
low = 1
medium = 2
none = 0
very_high = 4
class discord_http.enums.VideoQualityType(value, names=None, *, module=None, qualname=None, type=None, start=1, boundary=None)[source]

Bases: BaseEnum

auto = 1
full = 2
class discord_http.enums.WebhookType(value, names=None, *, module=None, qualname=None, type=None, start=1, boundary=None)[source]

Bases: BaseEnum

application = 3
channel_follower = 2
incoming = 1