Interactions-py

Latest version: v0.0.0

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

Scan your dependencies

Page 5 of 12

4.0.2

What's Changed
* 💥Refactored the synchronization process to remove global edge cases and less rate limited
* Updated the license to use GPL-3.0
* Fixed parsing of `Option` and `Choice` for JSON sending representation
* Introduced new models to represent Gateway events:
* `EmbeddedActivity` for `EMBEDDED_ACTIVITY_UPDATE`
* `GuildJoinRequest` for `GUILD_JOIN_REQUEST_CREATE`, `GUILD_JOIN_REQUEST_UPDATE` and `GUILD_JOIN_REQUEST_DELETE`.
* `Integration` for `INTEGRATION_CREATE`, `INTEGRATION_UPDATE` and `INTEGRATION_DELETE`.
* Fixed caching error where models require `id`
* 💥Corrected `Embed` and like object parsing
* Added various undocumented attributes from numerous API schemas
* 💥Changed the usage state of `HTTPClient`. `_state` is now required for supplying endpoint data
* Rewritten HTTP requesting logic to follow a more sane rate limitation based on per-route, globally and on buckets.
* [Added the ability to send/edit multiple action rows](https://github.com/interactions-py/library/pull/393)
* [Optimize performance of 393](https://github.com/interactions-py/library/pull/395)
* [Added new helper methods for models](https://github.com/interactions-py/library/pull/386), including:
* [401](https://github.com/interactions-py/library/pull/401)
* [416](https://github.com/interactions-py/library/pull/416)
* [418](https://github.com/interactions-py/library/pull/418)
* [Fixed a typo in button documentation](https://github.com/interactions-py/library/pull/400)
* [Fixed major sending and editing logic in components](https://github.com/interactions-py/library/pull/396)
* [Added new feature converters `message_command` and `user_command`](https://github.com/interactions-py/library/pull/417)
* [Corrected documentation on autocompletion](https://github.com/interactions-py/library/pull/422)
* [Ended forced configuration on logging](https://github.com/interactions-py/library/pull/421)
* [Added permissions representative for guild roles](https://github.com/interactions-py/library/pull/420)
* [💥 Fixed command corruption in the interactions cache](https://github.com/interactions-py/library/pull/437)
* [Correct documentation on importing for lackluster](https://github.com/interactions-py/library/pull/438)
* [Remove leftover `print` statements for debugging](https://github.com/interactions-py/library/pull/444)
* [Fixed how Gateway parse `SelectOption` per `SelectMenu` object](https://github.com/interactions-py/library/pull/423)
* [Refactor sending components in the main context](https://github.com/interactions-py/library/pull/433)
* [Developer dependencies/tools are now isolated into `[dev]` upon module installation.](https://github.com/interactions-py/library/pull/440)
* [Fixed `NoneType` closure during a guild member check](https://github.com/interactions-py/library/pull/439)
* [Fixed documentation on optional `?` formatting loosely breaking RST](https://github.com/interactions-py/library/pull/446)
* [Refactored the logger parse structure](https://github.com/interactions-py/library/pull/431)
* [💥 `ctx.edit` will now edit component responses when not deferred](https://github.com/interactions-py/library/pull/436)

New Contributors
* tagptroll1: https://github.com/interactions-py/library/pull/400
* pwuertz: https://github.com/interactions-py/library/pull/422
* Catalyst4222: https://github.com/interactions-py/library/pull/420
* Jalancar: https://github.com/interactions-py/library/pull/437
* snazzyfox: https://github.com/interactions-py/library/pull/444
* V3ntus: https://github.com/interactions-py/library/pull/431

A huge thank you to EdVraz for helping with a lot of the feature implementation of helper methods in the `HTTPClient`.
A thank you is in order for LordOfPolls as well for guiding us with a clearer retry/lock logic concept in rate limiting.

**Full Changelog**: https://github.com/interactions-py/library/compare/4.0.1...4.0.2

4.0.1

What's Changed
* Options are now correctly processed under a subcommand or grouping.
* `4.0.0` and 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 `WebSocket` for 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.
* `InteractionData` will now recursively generates options when present for context.
* `ctx.send` and `ctx.edit` now share the same arguments and signature.
* `member` and `hoisted_role` are no longer missing from `MessageInteraction` and `GuildMember` respectively.
* `Embed` `type` attribute is now more descriptive to its purpose.
* Python 3.10 is now compatible.
* `component` decorator now supports `custom_id` as a string-based argument.

New Contributors
* MeidoNoHitsuji: https://github.com/goverfl0w/discord-interactions/pull/376
* EdVraz: https://github.com/goverfl0w/discord-interactions/pull/382

**Full Changelog**: https://github.com/goverfl0w/discord-interactions/compare/4.0.0...4.0.1

4.0.0

**288**
> Library rewrite.
(The rewrite history is available at https://github.com/goverfl0w/discord-interactions/compare/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/.
- :boom: **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**__
- :boom: **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

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

3.0.2

- Fix issue with having to selectively install 3.0.1a (us making this a new release fixes that problem.)
- Moving to new PyPI name.

3.0.1

**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.

Page 5 of 12

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.