Releases: interactions-py/interactions.py
4.0.1
What's Changed
- Options are now correctly processed under a subcommand or grouping.
4.0.0and other libraries now run on the same space with event loop gathering.- Select menu option JSON is now fixed when converted from the object scope.
- Log is no longer spammed with warnings about a dispatched
VOICE. - Components are able to be deferred correctly.
- Button label documentation is corrected.
- 💥BREAKING: Global commands are now able to synchronize and be registered.
- the
WebSocketfor gateway will now factor in jitter from latency and trigger a reconnection when the connection dies. - Embed JSON data for each attribute are now respectively written during conversion.
InteractionDatawill now recursively generates options when present for context.ctx.sendandctx.editnow share the same arguments and signature.memberandhoisted_roleare no longer missing fromMessageInteractionandGuildMemberrespectively.Embedtypeattribute is now more descriptive to its purpose.- Python 3.10 is now compatible.
@componentdecorator now supportscustom_idas a string-based argument.
New Contributors
- @MeidoNoHitsuji: #376
- @EdVraz: #382
Full Changelog: 4.0.0...4.0.1
4.0.0
Release 4.0.0
Library rewrite.
(The rewrite history is available at legacy-v3...stable.)
Miscellaneous
- Added strict type hinting on objects and attributes.
- NEW: Switch to new Read The Docs "Karma" theme.
- Moved to new documentation website: https://discord-interactions.rtfd.io/.
- 💥 NEW: Moved to new PyPI repository:
discord-py-interactions.
Please install by using
pip install -U discord-py-interactions!
v3 AND UNDER are now considered DEPRECATED.
discord-py-slash-commandwill no longer be updated.
Core/API
- 💥 NEW: Removed
discord.pyas a dependency.
This library is now a standalone library, which no longer needs a parent library such as
discord.py, Pycord, nextcord or any other related d.py fork. You will be able to interact
with the API and Gateway like these libraries do without needing to add them in your bot
in order to use ours.
- NEW: Introduced gateway
WebSocketconnection. - NEW: Introduced
HTTPClientrequester. - Revamped object callback logic to
Listenerdispatch. - NEW: Introduced
Cachestorage cache. - NEW: Added new objects to reflect API schema objects.
- NEW: Introduced new "dynamic object generation" workflow.
This works off of taking returned JSON as a dictionary in Python and transforming it
into an object with predefined attributes (__slots__) that represents an API schema
-strict object. These "data models" are able to give back a raw_jsonattribute for the
pure dictionary data, and a recursive representation of the serializer with the attributes
respectively.
Interactions
- Revamped objects for commands.
- NEW: Converted component usage into objects.
- Revamped and included new enumerables.
- NEW: Introduced dual-way decorator logic.
Decorators used to only work during the callback trigger of an interaction creation event
from the Gateway. This has been changed to now include command synchronization during
the "constructing" phase, as well as passing data later into the cache which can be accessed.
- Restored
*argsand**kwargsinvocation logic with dispatching events. - NEW: Introduced
ActionRow-less sending. - Revamped error handler reading as
Exception.
A huge thanks to also these contributors for helping with developing version 4.0 and building the library in the past:
@eunwoo1104
@LordOfPolls
@DeltaXWizard
@benwoo1110
@AnotherCat
@artem30801
3.0.3
3.0.2
Allow multiple context menus.
Allow multiple context menus
3.0.1
3.0.0
2.4.2
Increases select label/description size limit
- Increase select label / description limits to match api #282
The hotchpotch update
- Restore
ctx.args/kwargs - Type hinting
- Doc fix
- Internal tweaks
- Improve readability of
sync_commandserrors - Add aliases