Skip to content

Releases: interactions-py/interactions.py

4.0.0

14 Dec 19:19
Compare
Choose a tag to compare

Release 4.0.0

#288

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-command will no longer be updated.

Core/API

  • 💥 NEW: Removed discord.py as 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 WebSocket connection.
  • NEW: Introduced HTTPClient requester.
  • Revamped object callback logic to Listener dispatch.
  • NEW: Introduced Cache storage 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 _json attribute 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 *args and **kwargs invocation 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

14 Dec 16:09
Compare
Choose a tag to compare

Forces a deprecation status in the raw_socket_receive event telling users to use discord-py-interactions instead.

3.0.2

24 Aug 00:29
29bb42c
Compare
Choose a tag to compare
  • Fix issue with having to selectively install 3.0.1a (us making this a new release fixes that problem.)
  • Moving to new PyPI name.

Allow multiple context menus.

15 Aug 00:22
87f4e64
Compare
Choose a tag to compare

#299

Allow multiple context menus

3.0.1

14 Aug 02:10
89d99ab
Compare
Choose a tag to compare

#289

Fix slight doc formatting issues.

#293

Reorder type listening + Menu/SlashContext confusion

#294

Menu Command Invocation Error

#295

Hotfix type-checking

#296

Remove context check.

3.0.0

13 Aug 00:42
5ddbd4f
Compare
Choose a tag to compare
  • #285 - Implement context menus.
  • #289 - Fix slight doc formatting issues.

2.4.2

12 Aug 05:19
Compare
Choose a tag to compare
  • #286 - debug_guild option for testing global commands
  • Added documentation for create_select_open in Read The Docs.

Increases select label/description size limit

07 Aug 21:58
7ab5fbb
Compare
Choose a tag to compare
  • Increase select label / description limits to match api #282

The hotchpotch update

03 Aug 17:11
f7f39e0
Compare
Choose a tag to compare
  • Restore ctx.args/kwargs
  • Type hinting
  • Doc fix
  • Internal tweaks
  • Improve readability of sync_commands errors
  • Add aliases

Handle Selects being de-selected

07 Jul 20:01
d68ea8e
Compare
Choose a tag to compare
  • Handle Selects being de-selected