Appearance
discohook.enums
Classes
- AllowedMentionsType
- ApplicationCommandOptionType
- ApplicationCommandType
- ApplicationIntegrationType
- ButtonStyle
- ChannelType
- ComponentType
- InteractionCallbackType
- InteractionContextType
- InteractionType
- ModalFieldType
- PollLayoutType
- SelectDefaultValueType
- SelectType
- TextInputFieldLength
- WebhookType
AllowedMentionsType
discohook.enums.AllowedMentionsType
The type of mentions allowed in a message.
Attributes
- roles (
int): Used to specify a role mentions allowed in a message. - users (
int): Used to specify a user mentions allowed in a message. - everyone (
int): Used to specify everyone mentions allowed in a message.
Inheritance
builtins.strenum.Enum
ApplicationCommandOptionType
discohook.enums.ApplicationCommandOptionType
Type of application command option. Used internally by the library. You should not need to use this.
Inheritance
builtins.intenum.Enum
ApplicationCommandType
discohook.enums.ApplicationCommandType
Type of application command.
Attributes
- slash (
int): Used to specify a slash command. - user (
int): Used to specify a user command. - message (
int): Used to specify a message command.
Inheritance
builtins.intenum.Enum
ApplicationIntegrationType
discohook.enums.ApplicationIntegrationType
Installation context(s) where the command is available.
Attributes
- guild (
int): Used to specify a guild context. - user (
int): Used to specify a user context.
Inheritance
builtins.intenum.Enum
ButtonStyle
discohook.enums.ButtonStyle
Represents the style of a button.
Attributes
- blurple (
int): Used to specify a blurple button. - gray (
int): Used to specify a gray button. - green (
int): Used to specify a green button. - red (
int): Used to specify a red button. - link (
int): Used to specify a link type button.
Inheritance
builtins.intenum.Enum
ChannelType
discohook.enums.ChannelType
Use to specify discord channel type in application command Option.
Attributes
- guild_text (
int): Used to specify a guild text channel. - dm (
int): Used to specify a dm channel. - guild_voice (
int): Used to specify a guild voice channel. - group_dm (
int): Used to specify a group dm channel. - guild_category (
int): Used to specify a guild category channel. - guild_announcement (
int): Used to specify a guild announcement channel. - guild_announcement_thread (
int): Used to specify a guild announcement thread channel. - public_thread (
int): Used to specify a guild public thread channel. - private_thread (
int): Used to specify a guild private thread channel. - guild_stage_voice (
int): Used to specify a guild stage voice channel. - guild_directory (
int): Used to specify a guild directory channel. - guild_forum (
int): Used to specify a guild forum channel. - guild_media (
int): Used to specify a guild media channel.
Inheritance
builtins.intenum.Enum
ComponentType
discohook.enums.ComponentType
Type of message component. Used internally by the library. You should not need to use this.
Inheritance
builtins.intenum.Enum
InteractionCallbackType
discohook.enums.InteractionCallbackType
Type of interaction callback. Used internally by the library. You should not need to use this.
Inheritance
builtins.intenum.Enum
InteractionContextType
discohook.enums.InteractionContextType
Type of interaction context.
Attributes
- guild (
int): Used to specify a guild context. - bot_dm (
int): Used to specify a bot dm context. - private_channel (
int): Used to specify a private channel context.
Inheritance
builtins.intenum.Enum
InteractionType
discohook.enums.InteractionType
Type of interaction received from discord. Used internally by the library. You should not need to use this.
Inheritance
builtins.intenum.Enum
ModalFieldType
discohook.enums.ModalFieldType
Type of field in a modal. Used internally by the library. You should not need to use this.
Attributes
- text_input (
int): Used to specify a text input field.
Inheritance
builtins.intenum.Enum
PollLayoutType
discohook.enums.PollLayoutType
Type of layout for a poll.
Attributes
- default (
int): Used to specify a default layout for a poll.
Inheritance
builtins.intenum.Enum
SelectDefaultValueType
discohook.enums.SelectDefaultValueType
Type of default values for a select menu.
Attributes
- user (
str): Used to specify a user default value for a select menu. - role (
str): Used to specify a role default value for a select menu. - channel (
str): Used to specify a channel default value for a select menu.
Inheritance
builtins.strenum.Enum
SelectType
discohook.enums.SelectType
The type of select menu.
Attributes
- text (
int): Used to specify a text select menu. - user (
int): Used to specify a user select menu. - role (
int): Used to specify a role select menu. - mentionable (
int): Used to specify a mentionable select menu. - channel (
int): Used to specify a channel select menu.
Inheritance
builtins.intenum.Enum
TextInputFieldLength
discohook.enums.TextInputFieldLength
Length of a text input field for a modal.
Attributes
- short (
int): Used to specify a short text input field. - long (
int): Used to specify a long text input field.
Inheritance
builtins.intenum.Enum
WebhookType
discohook.enums.WebhookType
Type of webhook. Used internally by the library. You should not need to use this.
Inheritance
builtins.intenum.Enum
