Releases: discord-py-ui/discord-ui
slash fix
https://pypi.org/project/discord-ui/3.2.7/
Added
- warnings
- When a guild_permission with an invalid guild id is passed, it will throw an exception when syncing the commands
- When the value of a guild_permission is not of type
SlashPermission
it will throw an exception
- context-commands
You can now have context commands with the same name as a normal slash command
- slashcommand description
You can use docstrings
"""docstring"""
for setting the description of a slash commmand by setting the dosctring for the callback function
Changed
- auto_defer
auto_defer is now disabled by default
- slash sync
You can now disable auto_sync for slash commmands and sync them by yourself with
Slash.sync_commands(delete_unused)
- Interacion.defer
Interaction._deferred
is notInteraction.deferred
andInteraction.defer()
doesn't throw an exception anymore, it will just log the error withlogging.error()
Fixed
- try
There was a try/catch in the
Interaction.respond
function that would allow the code to continue when an exception occured while responding with ninja_mode
- context commands
There was an issue adding context-commands
- Command checking
Now, the libary only edits commands when changes were made
ninja_mode fix
https://pypi.org/project/discord-ui/3.2.6/
Added
- auto ninja_mode
If you use
.respond()
, the function will try to use ninja_mode automatically
Changed
- project
Moved git-project to https://github.com/discord-py-ui/discord-ui
Fixed
- ninja_mode response
responding with ninja_mode would end up in an exception
- file sending
fixed another file sending issue with slash commands
overriden file sending fix
issue fix
Interactions/issue-fix
https://pypi.org/project/discord-ui/3.2.0/
Fixed
I'm really sorry for all the issues this libary got, if you still find issues, please report them in https://github.com/KusoRedsto/discord-ui/issues
- SelectOpion
There was an issue with emojis not being set in SelectOptions
- LinkButton
There was an issue with setting the url not being set
- SlashCommands
There was an issue with creating commands that don't already exist
Changed
- SelectedMenu
.values
is not.selected_values
Added
- Interaction
Buttons and SelectMenus have a
.message
property for the message where their interaction was creted
ResponseMessages have a.interaction
property for the received interaction
- Events
We added a
interaction_received
event for all interactions that are received
slash-upgrade
https://pypi.org/project/discord-ui/3.1.0/
Added
- discordpy 2 support
We added support for discord.py v2, so you can stay loyal to our libary and use it together with discord.py v2!
- Exceptions
Added own Exceptions for errors
- ParseMethod
You can change the way the extension parses interaction data. You can choose between different Methods
- Auto-defer
The libary will autodefer all interactions public. If you want to change that, take a look at the documentation for this feature
- slashcommand edit check
Slash commands will only be edited if there were some changes, so you won't get a
invalid interaction
error in discord after starting the bot
If only permissions were changed, just the permissions will be edited and not the whole command like before
Fixed
- slash commands
I finally fixed the damn slashcommand system, it should work now
- Parsing
The resolving, fetching and pulling from the cache methods should all work
discord-ui/context-commands
https://pypi.org/project/discord-ui/3.0.1/
Added
- context commands
Context commands are now available
Changed
- Project name
The project's name was changed from
discord-message-components
todiscord-ui
Extension
is nowUI
webhooks
https://pypi.org/project/discord-message-components/2.1.0/
Added
- Webhook support
You are now able to use webhooks together with message components, to send a webhook message with the components, use the
Components.send_webhook
function.
The standart webhook function is also overriden with the new component function
- Float type
You can now use
float
as the argument type for a slash command option
- Auto empty names
Buttons, LinkButtons and SelectOptions labels are now by default
\u200b
, which is an "empty" char
Changed
- Code documentation to more be more informative
Fixed
-
Fixed small code issues (they were already fixed in previous versions, but I just wanna list this here)
-
Docs are now working
Again issue fix
https://pypi.org/project/discord-message-components/2.0.5/
Fixed
- Sending messages
Fixed sending messages, added ctx support
Issue fix
https://pypi.org/project/discord-message-components/2.0.2/
Fixed some issues:
- Slash command
permissions didn't update
- SelectOption
the default value was interpreted wrong