Diskord

Latest version: v2.6.2

Safety actively analyzes 681866 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

2.6.2

Breaking Changes

- Autocomplete callbacks now take `Option` as a second parameter before interaction and after value.
- Removed `ignore_guild_register_fail` from commands registration methods.
- Guild IDs related to application commands now default to ``None`` instead of empty list.
- `Client.application_commands_guild_ids` now default to None.
- `ApplicationCommand.guild_ids` now default to None.
- Redesigned application commands registration.
- Guild commands are bulk overwritten on every call.
- Global commands are not re-registered if they are not updated.
- `sync_application_commands` now bulk overwrites guild commands. Use `Client.create_application_command` instead.

Additions

- Add support for bypassing registration process by adding ``id`` parameter in application command.
- Add support for guild boosts progress bar.
- Add `diskord.Client.create_application_command`

Bug Fixes

- Fix reference error on guild command registration fail.
- Duplicate guild IDs in application commands are now properly ignored.
- Fix ``type`` kwarg being ignored by `diskord.application.option` decorator.
- Other minor fixes.

Documentation also has been fixed and now has proper hyperlinks on attributes.

2.6.1

- Add support minimum and maximum values on slash commands options
- Add `application.Option.min_value`
- Add `application.Option.max_value`
- Rename ``Client.application_commands_guild_ids`` to `Client.application_command_guild_ids`
- `Client.application_commands` is now a `list` instead of ID to command mapping.
- Fix NameError on guilds commands registration failing to register
- Fix `application.ApplicationCommand.default_permissions` not working at all.
- Fix `repr(ApplicationCommand`) raising AttributeError
- Fix getters and fetchers from `Guild` for commands not working at all.

2.6.0

Breaking Changes

* Rename ``diskord.slash_option`` decorator to `diskord.application.option`
* Move user constructable application commands classes to ``application`` namespace.
* Rename ``on_application_command_run`` to `on_application_command`
* Application Commands are now handled internally like components. ``Client.process_application_commands`` has been removed.
* Application commands permissions rework. See the relevant documentation for more details.

Additions

* Implement autocompletion for slash commands options (15)
* Implement support for sending files in `diskord.InteractionResponse.send_message`
* Add `diskord.application.ApplicationCommand.extras` to `diskord.application.ApplicationCommand` (11)
* Add ``application_commands_guild_ids`` parameter to `diskord.Client` to prevent bot from creating global commands.
* Add `diskord.ApplicationCommand.edit` and `diskord.ApplicationCommand.delete` methods.
* Rename `diskord.Client.get_application_context` to `diskord.Client.get_interaction_context`

Improvements

* `diskord.application.ApplicationCommand.callback` is now settable.
* Converters can now be determined by the option annotations in slash commands.

Bug Fixes

* Fix role icons not being set properly.
* Fix previous options for application commands getting re-added after command has been removed and added back to pending commands list.
* Fix user option resolving to ``None`` in slash commands if member intents are missing.
* Fix files raising AttributeError

2.5.1

* Fix TypeError in context menu commands.

2.5.0

* Support for Application Commands :tada:
* Partial Support for Application Commands extensions.
* Support for role icons
* Support guild welcome screen
* Add raw_thread_delete event
* Add raw_typing events

https://diskord.readthedocs.io/en/latest/migrating.html
https://diskord.readthedocs.io/en/latest/application_commands.html

2.0.0

Links

Releases

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.