Dyscord

Latest version: v0.6.1

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

Scan your dependencies

Page 2 of 3

0.4.4

Added
- Support for autocomplete `Interaction` flows.
- All `BaseDiscordObjects` now support `validation` as a defaulted (`NonImplementedError`) function. All classes should implement this soon.

Removed
- We had a `CHANNEL_TYPE` and `CHANNEL_TYPES` enumeration in two places, removed the one in `interactions`.

Fixed
- Interaction processing called the API without reason, fixed that.

0.4.3

Added
- Handle `VOICE_STATE_UPDATE` events.

Fixed
- `PRESENCE_UPDATE` could sometimes brick us with IDs and creation timestamps in the 4000's. Handle both now.
- Registering a command to a guild errored if you gave it a valid string of a guild_id.

0.4.2

Added
- `Activty` and friends.
- `Presence` and friends.
- Support `GUILD_MEMBER_UPDATE` events.

Fixed
- Made reconnection more robust.

0.4.1

Added
- Added the `dyscord.command` alias to point to commonly used command interfaces.
- `Message.formatter.TIMESTAMP_FLAGS` was missing the `SHORT_DATE_TIME` option.

Changed
- `MESSAGE_UPDATE` events now return a `MessageUpdate` object. This is a duplicate of `Message`, except most fields are annotated as `Optional`.
- `User` and `Member` objects now support mentions straight from the `__str__()` method. This allows you to do `f'Hello {user_variable}` and get a mention!\
- Unit testing coverage now > 70% for the project. On our way to 100%!

Deprecated
- `Command.generate(options)` Argument is optional, and should be removed by `0.6.0`.

Removed
- Unused `Cache()` function from `User` and `Member`.
- Nonfunctionl `edit_origional_response()` and `delete_initial_response()` from `InteractionResponse`, they are not in the discord API.

Fixed
- Removed `ephemeral` from followup generate messages, discord ignores this flag anyway!
- `Message` objects assumed they would get a lot of fields, which is not true in `MESSAGE_UPDATE` events.

0.4.0

Added
- New set_all_intents() function in DiscordClient. Sets all intents to True.
- Better example code.
- User and Member now have all attributes set to `None` by default.
- Role now has all attributes set to `None` by default.
- Begin restructure of documentation to make some sense.
- Registering to a guild allows you to register different commands to different guilds.
- TTL Cache to API.get_user, API.get_guild and API.get_channel.

Changed
- `InteractionStructure` renamed to `Interaction`.
- `InteractionDataStructure` renamed to `InteractionData`.
- `register_handler` renamed to `decorate_handler`.
- `DISCORD_EVENTS` moved from `dyscord.objects` to `discord.client`.
- Reworked the repo to be a bit cleaner.
- Moved Dockerfiles to their own folder, with a 4x speedup on initial build times.
- Attributes of classes updated to be `None` by default.
- Channel (and subclasses).
- Guild
- Embed
- Removed `ingest_raw_dict()` from classes.
- Channel (and subclasses).
- Guild
- Embed
- Message
- Ready
- User
- Member

Fixed
- Exposed the `__version__` string at the top module level.

0.3.1

Added
- Handle invalid session events.
- Support for ReadTheDocs.

Fixed
- Importing actually works again.

Page 2 of 3

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.