Qord

Latest version: v0.3.0

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

Scan your dependencies

0.3.0

Additions

- Added support for custom guild emojis.
- Added support for message reactions.
- Added `Guild.me` property for retreiving bot member.
- Added `created_at` property on appropriate Discord models.
- Added `BaseMessageChannel.messages` method to iterate through channels history.
- Added `Guild.members` method to iterate through guild members.
- Added `PrivateChannel.url`, `GuildChannel.url` and `Message.url` properties
- Added `BaseMessageChannel.trigger_typing` and `BaseMessageChannel.typing` for working with typing indicators.
- Added `Message.crosspost` for crossposting messages in news channels.

Changes

- `ChannelPermission` now supports equality comparisons.
- All models now shows useful information in `repr()`

Fixes

- Fixed `Embed.video` property running into infinite loop.
- Fixed disparity between ``embed`` and ``embeds`` parameters in `BaseMessageChannel.send`
- Fixed typing of `Message.channel` not including DM channels.

0.3.0a2

This release brings many new features such as ratelimits handling, permissions support etc. as well as many bug fixes. This would most likely be the last alpha release for v0.3 and next release would be stable v0.3.0!

The major outlines for this release are given below:

Additions

- Added handling of HTTP ratelimits.
- Added support for channel permission overwrites.
- Added equality comparison support for various Discord models.
- Added module `qord.utils`, see [API reference](https://qord.rtfd.io/en/latest/reference.html#reference-utilities) for more info.
- Added `Message.referenced_message` attribute.
- Added `qord.utils.create_timestamp` helper function.
- Added `Embed.total_length` and `builtins.len()` support on `Embed`
- Added ``channel`` keyword argument in `GuildMember.edit`

Improvements/Misc.

- `User.mention` string no longer includes ``!``, This is done in order to comply with the recent change done to Discord client. For more information, see [this issue](https://github.com/discord/discord-api-docs/issues/4734)
- `DefaultCache.private_channels` cache is now bound to limit of 256 channels.
- `File` constructor no longer raises `RuntimeError` on failing to resolve file name and now fallbacks to ``untitled``

Fixes

- Fixed cache not cleaning up on client closure.
- Fixed typing issues across the library.
- Passing ``None`` is not supported in various places especially ``x_url()`` methods.
- ``None`` is now allowed in ``reason`` parameters in REST methods.
- Various methods of cache handlers now return `typing.List` rather than the `typing.Sequence`
- Other minor improvements and fixes.
- Fixed `GuildCache.roles` returning empty list for HTTP retrieved guilds.
- Minor bug fixes.

0.3.0a1

**Breaking Changes:**

- Event system restructure
- Custom events are now created using `BaseEvent`
- `Client.invoke_event()` now takes single `BaseEvent` instance.
- `BaseEvent` is no longer a protocol, all custom events must inherit it.
- New protocol class `BaseGatewayEvent` has been added for gateway related events.

- `MessagesSupport` was renamed to `BaseMessageChannel` for consistency.

**Additions:**

- Add `MessageType` enumeration.
- Add support for message embeds.
- Add support for message allowed mentions.
- Add support for message flags.
- Add support for message references.
- Add `Message.edit()` and `Message.delete()` methods.
- Add `Shard.disconnect()` and `reconnect()` methods.
- Add `PrivateChannel.close()` method.
- Add `Intents.message_content` privileged intent flag.
- `send()` now supports embeds, files, allowed mentions and all other fields.

**Fixes:**

- Fix various crashes on startup.
- Fix minor bugs.

**Improvements:**

- Startup time has minor improvements.
- Library is now completely typed, there may be breaking type changes.

0.2.0

What's New
- Added support for guild roles.
- Added support for guild members.
- Added support for permissions.
- Added support for guild channels.
- Added support for messages.
- Added `User.proper_name` property.
- Added `User.mention` property.

Tweaks
- `Guild.cache` is no longer optional.
- Startup time has been significantly improved.

Bug fixes
- Fixed `GuildCache.clear()` not getting called upon guild evictions.
- Fixed `extension` parameter incorrectly behaving for various URL methods.
- Fixed shards closing on receiving unhandleable OP code.
- Fixed client not properly closing in some cases.
- Fixed `Client.launch()` raising RuntimeError upon relaunching the client after closing.

**Commits since previous version**: https://github.com/nerdguyahmad/qord/compare/0.2.0a1...0.2.0

0.2.0a1

Changelog
- Add support for users. (2)
- Add support for guilds. (4)
- Add support for caching. (5)
- Fix wrong instance check on manually passing a client session. (3)
- Event listeners tasks now have proper exception handling.
- Various performance improvements.

0.1.0alpha

Initial release.

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.