cogs
https://pypi.org/project/discord-ui/4.0.0/
Added
You now have much more control over your slash commands!
- Permissions
You can update your permissions with the
Slash.update_permissions
function
- Creating commands
You can now create slash commands without the decorator in a much more eaisier way! Check out the
Slash.add_command
function
- Edit commands
You can edit commands in code with the
Slash.edit_command
function
- Listening components
You can add and remove listening components now with the
Components.add_listening_component
,Components.remove_listening_component
andComponents.remove_listening_components
functions
- Cogs
You can now use cog decorators like
slash_cog
,subslash_cog
andlistening_component_cog
Fixed
- SlashCommand
Slash commands wouldn't be updated if only
default_permission
was changed
Changed
- wait_for
Message.wait_for now takes
by
andcheck
as parameters andevent_name
andclient
switched place (wait_for(client, "event_name")
is nowwait_for("event_name", client)
)
- listening components
You can specify listening_components now more presicely, you can add messages, users, and a check to filter
- Interaction.member
Interaction.member
is nowInteraction.author
- listening comonents
Listening component callback functions now only take one parameter, the used component
on_button_press
andon_menu_select
These events now take a sole parameter, the used component. If you want to acces to message, use
passed_component.message
Removed
- ResponseMessage
Removed ResponseMessage