discord-interactions
Docs
Index
Edit on GitHub
Contents:
Quickstart
Getting Started
Where do we start?
Making a slash command.
Making a message/menu command.
Nested commands as subcommands.
Handling my errors.
Migration
Migrate To V2.0.0
Migrate To V1.1.0
Migrate To 1.0.9
How to use components
Sending some components
Responding to interactions
How do I know which button was pressed?
What about selects / Dropdowns?
What about Modals / Forms?
discord_slash package
Submodules
discord_slash Events
discord_slash.utils package
Submodules
Module contents
Frequently Asked Questions
Why don’t my slash commands show up?
How to add slash commands?
How to delete slash commands?
What is the difference between ctx.send and ctx.channel.send?
Can I use something of discord.py’s in this extension?
Any more questions?
Index
A
|
B
|
C
|
D
|
E
|
F
|
G
|
H
|
I
|
L
|
M
|
O
|
P
|
R
|
S
|
T
|
U
|
V
A
ActionRow (class in discord_slash.component)
actionrow (discord_slash.model.ComponentType attribute)
add_check() (discord_slash.model.BaseCommandObject method)
(discord_slash.model.CallbackObject method)
(discord_slash.model.CogBaseCommandObject method)
(discord_slash.model.CogComponentCallbackObject method)
(discord_slash.model.CogSubcommandObject method)
(discord_slash.model.CommandObject method)
(discord_slash.model.ComponentCallbackObject method)
(discord_slash.model.SubcommandObject method)
add_component() (discord_slash.component.ActionRow method)
add_component_callback() (discord_slash.client.SlashCommand method)
add_context_menu() (discord_slash.client.SlashCommand method)
add_slash_command() (discord_slash.client.SlashCommand method)
(discord_slash.http.SlashCommandRequest method)
(in module discord_slash.utils.manage_commands)
add_subcommand() (discord_slash.client.SlashCommand method)
AlreadyResponded
append() (discord_slash.component.ActionRow method)
APPLICATION_COMMAND (discord_slash.model.InteractionType attribute)
APPLICATION_COMMAND_AUTOCOMPLETE (discord_slash.model.InteractionType attribute)
APPLICATION_COMMAND_AUTOCOMPLETE_RESULT (discord_slash.model.InteractionCallbackType attribute)
application_id (discord_slash.http.SlashCommandRequest property)
ATTACHMENT (discord_slash.model.SlashCommandOptionType attribute)
AutoCompleteContext (class in discord_slash.context)
B
BASE (discord_slash.http.CustomRoute attribute)
BaseCommandObject (class in discord_slash.model)
blue (discord_slash.component.ButtonStyle attribute)
(discord_slash.model.ButtonStyle attribute)
blurple (discord_slash.model.ButtonStyle attribute)
BOOLEAN (discord_slash.model.SlashCommandOptionType attribute)
built-in function
on_component()
on_component_callback()
on_component_callback_error()
on_slash_command()
on_slash_command_error()
Button (class in discord_slash.component)
button (discord_slash.model.ComponentType attribute)
button_click (discord_slash.model.InteractionEventType attribute)
ButtonStyle (class in discord_slash.component)
(class in discord_slash.model)
C
CallbackObject (class in discord_slash.model)
can_run() (discord_slash.model.BaseCommandObject method)
(discord_slash.model.CallbackObject method)
(discord_slash.model.CogBaseCommandObject method)
(discord_slash.model.CogComponentCallbackObject method)
(discord_slash.model.CogSubcommandObject method)
(discord_slash.model.CommandObject method)
(discord_slash.model.ComponentCallbackObject method)
(discord_slash.model.SubcommandObject method)
channel (discord_slash.context.InteractionContext property)
CHANNEL (discord_slash.model.SlashCommandOptionType attribute)
CHANNEL_MESSAGE_WITH_SOURCE (discord_slash.model.InteractionCallbackType attribute)
CHAT_INPUT (discord_slash.model.ContextMenuType attribute)
CheckFailure
ChoiceData (class in discord_slash.model)
cog (discord_slash.context.AutoCompleteContext property)
(discord_slash.context.MenuContext property)
(discord_slash.context.SlashContext property)
cog_component() (in module discord_slash.cog_ext)
cog_context_menu() (in module discord_slash.cog_ext)
cog_slash() (in module discord_slash.cog_ext)
cog_subcommand() (in module discord_slash.cog_ext)
CogBaseCommandObject (class in discord_slash.model)
CogComponentCallbackObject (class in discord_slash.model)
CogSubcommandObject (class in discord_slash.model)
command_request() (discord_slash.http.SlashCommandRequest method)
command_response() (discord_slash.http.SlashCommandRequest method)
CommandData (class in discord_slash.model)
CommandObject (class in discord_slash.model)
Component (class in discord_slash.component)
component_callback() (discord_slash.client.SlashCommand method)
ComponentCallbackObject (class in discord_slash.model)
ComponentContext (class in discord_slash.context)
components (discord_slash.component.ActionRow property)
(discord_slash.model.SlashMessage attribute)
ComponentType (class in discord_slash.model)
context_menu() (discord_slash.client.SlashCommand method)
ContextMenuError
ContextMenuType (class in discord_slash.model)
create_choice() (in module discord_slash.utils.manage_commands)
create_multi_ids_permission() (in module discord_slash.utils.manage_commands)
create_option() (in module discord_slash.utils.manage_commands)
create_permission() (in module discord_slash.utils.manage_commands)
custom_id (discord_slash.component.Button property)
(discord_slash.component.Select property)
(discord_slash.component.TextInput property)
CustomRoute (class in discord_slash.http)
D
danger (discord_slash.model.ButtonStyle attribute)
default (discord_slash.component.SelectOption property)
defer() (discord_slash.context.ComponentContext method)
(discord_slash.context.InteractionContext method)
(discord_slash.context.MenuContext method)
DEFERRED_CHANNEL_MESSAGE_WITH_SOURCE (discord_slash.model.InteractionCallbackType attribute)
DEFERRED_UPDATE_MESSAGE (discord_slash.model.InteractionCallbackType attribute)
deffered (discord_slash.context.InteractionContext property)
delete() (discord_slash.http.SlashCommandRequest method)
(discord_slash.model.SlashMessage method)
description (discord_slash.component.SelectOption property)
disable_components() (discord_slash.component.ActionRow method)
(discord_slash.model.SlashMessage method)
disabled (discord_slash.component.Button property)
(discord_slash.component.Select property)
discord_slash.client
module
discord_slash.cog_ext
module
discord_slash.component
module
discord_slash.context
module
discord_slash.error
module
discord_slash.http
module
discord_slash.model
module
discord_slash.utils
module
discord_slash.utils.manage_commands
module
discord_slash.utils.manage_components
module
DuplicateCallback
DuplicateCommand
DuplicateSlashClient
E
edit() (discord_slash.http.SlashCommandRequest method)
(discord_slash.model.SlashMessage method)
edit_origin() (discord_slash.context.ComponentContext method)
emoji (discord_slash.component.Button property)
(discord_slash.component.SelectOption property)
emoji_to_dict() (in module discord_slash.component)
error() (discord_slash.model.BaseCommandObject method)
(discord_slash.model.CallbackObject method)
(discord_slash.model.CogBaseCommandObject method)
(discord_slash.model.CogComponentCallbackObject method)
(discord_slash.model.CogSubcommandObject method)
(discord_slash.model.CommandObject method)
(discord_slash.model.ComponentCallbackObject method)
(discord_slash.model.SubcommandObject method)
extend_component_callback() (discord_slash.client.SlashCommand method)
F
FLOAT (discord_slash.model.SlashCommandOptionType attribute)
from_json() (discord_slash.component.ActionRow class method)
(discord_slash.component.Button class method)
(discord_slash.component.Component class method)
(discord_slash.component.Select class method)
(discord_slash.component.SelectOption class method)
(discord_slash.component.TextInput class method)
from_type() (discord_slash.model.SlashCommandOptionType class method)
(discord_slash.model.SlashCommandPermissionType class method)
G
generate_options() (in module discord_slash.utils.manage_commands)
generate_permissions() (in module discord_slash.utils.manage_commands)
get_all_commands() (discord_slash.http.SlashCommandRequest method)
(in module discord_slash.utils.manage_commands)
get_all_guild_commands_permissions() (discord_slash.http.SlashCommandRequest method)
(in module discord_slash.utils.manage_commands)
get_cog_commands() (discord_slash.client.SlashCommand method)
get_component() (discord_slash.model.SlashMessage method)
get_component_callback() (discord_slash.client.SlashCommand method)
get_components_ids() (in module discord_slash.utils.manage_components)
get_cooldown_retry_after() (discord_slash.model.BaseCommandObject method)
(discord_slash.model.CallbackObject method)
(discord_slash.model.CogBaseCommandObject method)
(discord_slash.model.CogComponentCallbackObject method)
(discord_slash.model.CogSubcommandObject method)
(discord_slash.model.CommandObject method)
(discord_slash.model.ComponentCallbackObject method)
(discord_slash.model.SubcommandObject method)
get_guild_command_permissions() (in module discord_slash.utils.manage_commands)
get_messages_ids() (in module discord_slash.utils.manage_components)
gray (discord_slash.component.ButtonStyle attribute)
(discord_slash.model.ButtonStyle attribute)
green (discord_slash.component.ButtonStyle attribute)
(discord_slash.model.ButtonStyle attribute)
grey (discord_slash.component.ButtonStyle attribute)
(discord_slash.model.ButtonStyle attribute)
guild (discord_slash.context.InteractionContext property)
GuildPermissionsData (class in discord_slash.model)
H
handle_subcommand() (discord_slash.client.SlashCommand method)
I
IncorrectCommandData
IncorrectFormat
IncorrectGuildIDType
IncorrectType
INTEGER (discord_slash.model.SlashCommandOptionType attribute)
interaction (discord_slash.model.SlashMessage attribute)
InteractionCallbackType (class in discord_slash.model)
InteractionContext (class in discord_slash.context)
InteractionEventType (class in discord_slash.model)
InteractionType (class in discord_slash.model)
invoke() (discord_slash.context.SlashContext method)
(discord_slash.model.BaseCommandObject method)
(discord_slash.model.CallbackObject method)
(discord_slash.model.CogBaseCommandObject method)
(discord_slash.model.CogComponentCallbackObject method)
(discord_slash.model.CogSubcommandObject method)
(discord_slash.model.CommandObject method)
(discord_slash.model.ComponentCallbackObject method)
(discord_slash.model.SubcommandObject method)
invoke_command() (discord_slash.client.SlashCommand method)
invoke_component_callback() (discord_slash.client.SlashCommand method)
is_on_cooldown() (discord_slash.model.BaseCommandObject method)
(discord_slash.model.CallbackObject method)
(discord_slash.model.CogBaseCommandObject method)
(discord_slash.model.CogComponentCallbackObject method)
(discord_slash.model.CogSubcommandObject method)
(discord_slash.model.CommandObject method)
(discord_slash.model.ComponentCallbackObject method)
(discord_slash.model.SubcommandObject method)
L
label (discord_slash.component.Button property)
(discord_slash.component.SelectOption property)
(discord_slash.component.TextInput property)
M
max_length (discord_slash.component.TextInput property)
max_values (discord_slash.component.Select property)
me (discord_slash.context.InteractionContext property)
MENTIONABLE (discord_slash.model.SlashCommandOptionType attribute)
MenuContext (class in discord_slash.context)
MESSAGE (discord_slash.model.ContextMenuType attribute)
MESSAGE_COMPONENT (discord_slash.model.InteractionType attribute)
min_length (discord_slash.component.TextInput property)
min_values (discord_slash.component.Select property)
Modal (class in discord_slash.component)
MODAL (discord_slash.model.InteractionCallbackType attribute)
MODAL_SUBMIT (discord_slash.model.InteractionType attribute)
ModalContext (class in discord_slash.context)
module
discord_slash.client
discord_slash.cog_ext
discord_slash.component
discord_slash.context
discord_slash.error
discord_slash.http
discord_slash.model
discord_slash.utils
discord_slash.utils.manage_commands
discord_slash.utils.manage_components
O
on_component()
built-in function
on_component_callback()
built-in function
on_component_callback_error()
built-in function
on_component_callback_error() (discord_slash.client.SlashCommand method)
on_slash_command()
built-in function
on_slash_command_error()
built-in function
on_slash_command_error() (discord_slash.client.SlashCommand method)
on_socket_response() (discord_slash.client.SlashCommand method)
OptionData (class in discord_slash.model)
options (discord_slash.component.Select property)
P
PARAGRAPH (discord_slash.component.TextInputStyle attribute)
permission() (discord_slash.client.SlashCommand method)
(in module discord_slash.cog_ext)
PermissionData (class in discord_slash.model)
PING (discord_slash.model.InteractionType attribute)
placeholder (discord_slash.component.Select property)
(discord_slash.component.TextInput property)
PONG (discord_slash.model.InteractionCallbackType attribute)
populate() (discord_slash.context.AutoCompleteContext method)
popup() (discord_slash.context.InteractionContext method)
post_followup() (discord_slash.http.SlashCommandRequest method)
post_initial_response() (discord_slash.http.SlashCommandRequest method)
primary (discord_slash.model.ButtonStyle attribute)
process_options() (discord_slash.client.SlashCommand method)
put_slash_commands() (discord_slash.http.SlashCommandRequest method)
R
red (discord_slash.component.ButtonStyle attribute)
(discord_slash.model.ButtonStyle attribute)
remove_all_commands() (in module discord_slash.utils.manage_commands)
remove_all_commands_in() (in module discord_slash.utils.manage_commands)
remove_check() (discord_slash.model.BaseCommandObject method)
(discord_slash.model.CallbackObject method)
(discord_slash.model.CogBaseCommandObject method)
(discord_slash.model.CogComponentCallbackObject method)
(discord_slash.model.CogSubcommandObject method)
(discord_slash.model.CommandObject method)
(discord_slash.model.ComponentCallbackObject method)
(discord_slash.model.SubcommandObject method)
remove_cog_commands() (discord_slash.client.SlashCommand method)
remove_component() (discord_slash.component.ActionRow method)
remove_component_callback() (discord_slash.client.SlashCommand method)
remove_component_callback_obj() (discord_slash.client.SlashCommand method)
remove_slash_command() (discord_slash.http.SlashCommandRequest method)
(in module discord_slash.utils.manage_commands)
reply() (discord_slash.context.InteractionContext method)
request_with_files() (discord_slash.http.SlashCommandRequest method)
RequestFailure
required (discord_slash.component.TextInput property)
reset_cooldown() (discord_slash.model.BaseCommandObject method)
(discord_slash.model.CallbackObject method)
(discord_slash.model.CogBaseCommandObject method)
(discord_slash.model.CogComponentCallbackObject method)
(discord_slash.model.CogSubcommandObject method)
(discord_slash.model.CommandObject method)
(discord_slash.model.ComponentCallbackObject method)
(discord_slash.model.SubcommandObject method)
ROLE (discord_slash.model.SlashCommandOptionType attribute)
(discord_slash.model.SlashCommandPermissionType attribute)
S
secondary (discord_slash.model.ButtonStyle attribute)
Select (class in discord_slash.component)
select (discord_slash.model.ComponentType attribute)
select_option (discord_slash.model.InteractionEventType attribute)
SelectOption (class in discord_slash.component)
send() (discord_slash.context.ComponentContext method)
(discord_slash.context.InteractionContext method)
(discord_slash.context.MenuContext method)
set_components() (discord_slash.component.ActionRow method)
set_custom_id() (discord_slash.component.Button method)
(discord_slash.component.Select method)
set_default() (discord_slash.component.SelectOption method)
set_description() (discord_slash.component.SelectOption method)
set_disabled() (discord_slash.component.Button method)
(discord_slash.component.Select method)
set_emoji() (discord_slash.component.Button method)
(discord_slash.component.SelectOption method)
set_label() (discord_slash.component.Button method)
(discord_slash.component.SelectOption method)
set_max_values() (discord_slash.component.Select method)
set_min_values() (discord_slash.component.Select method)
set_options() (discord_slash.component.Select method)
set_placeholder() (discord_slash.component.Select method)
set_style() (discord_slash.component.Button method)
set_url() (discord_slash.component.Button method)
set_value() (discord_slash.component.SelectOption method)
SHORT (discord_slash.component.TextInputStyle attribute)
slash (discord_slash.context.AutoCompleteContext property)
(discord_slash.context.MenuContext property)
(discord_slash.context.SlashContext property)
slash() (discord_slash.client.SlashCommand method)
SlashCommand (class in discord_slash.client)
SlashCommandError
SlashCommandOptionType (class in discord_slash.model)
SlashCommandPermissionType (class in discord_slash.model)
SlashCommandRequest (class in discord_slash.http)
SlashContext (class in discord_slash.context)
SlashMessage (class in discord_slash.model)
STRING (discord_slash.model.SlashCommandOptionType attribute)
style (discord_slash.component.Button property)
(discord_slash.component.TextInput property)
SUB_COMMAND (discord_slash.model.SlashCommandOptionType attribute)
SUB_COMMAND_GROUP (discord_slash.model.SlashCommandOptionType attribute)
subcommand() (discord_slash.client.SlashCommand method)
SubcommandObject (class in discord_slash.model)
success (discord_slash.model.ButtonStyle attribute)
sync_all_commands() (discord_slash.client.SlashCommand method)
T
TextInput (class in discord_slash.component)
textinput (discord_slash.model.ComponentType attribute)
TextInputStyle (class in discord_slash.component)
to_dict() (discord_slash.client.SlashCommand method)
(discord_slash.component.ActionRow method)
(discord_slash.component.Button method)
(discord_slash.component.Component method)
(discord_slash.component.Modal method)
(discord_slash.component.Select method)
(discord_slash.component.SelectOption method)
(discord_slash.component.TextInput method)
U
update_guild_commands_permissions() (discord_slash.http.SlashCommandRequest method)
(in module discord_slash.utils.manage_commands)
UPDATE_MESSAGE (discord_slash.model.InteractionCallbackType attribute)
update_single_command_permissions() (in module discord_slash.utils.manage_commands)
url (discord_slash.component.Button property)
URL (discord_slash.component.ButtonStyle attribute)
(discord_slash.model.ButtonStyle attribute)
USER (discord_slash.model.ContextMenuType attribute)
(discord_slash.model.SlashCommandOptionType attribute)
(discord_slash.model.SlashCommandPermissionType attribute)
V
value (discord_slash.component.SelectOption property)
(discord_slash.component.TextInput property)
voice_client (discord_slash.context.InteractionContext property)