aldman123 / AldBot

A Discord Bot for the AldCo server
0 stars 0 forks source link

Update dependency py-cord to v2.5.0 #23

Closed renovate[bot] closed 6 months ago

renovate[bot] commented 6 months ago

Mend Renovate

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
py-cord (changelog) ==2.2.2 -> ==2.5.0 age adoption passing confidence

Release Notes

Pycord-Development/pycord (py-cord) ### [`v2.5.0`](https://togithub.com/Pycord-Development/pycord/blob/HEAD/CHANGELOG.md#250---2024-03-02) [Compare Source](https://togithub.com/Pycord-Development/pycord/compare/v2.4.1...v2.5.0) ##### Added - Added method to start bot via async context manager. ([#​1801](https://togithub.com/Pycord-Development/pycord/pull/1801)) - Added parameters `author`, `footer`, `image` and `thumbnail` to `discord.Embed` initializer. ([#​1996](https://togithub.com/Pycord-Development/pycord/pull/1996)) - Added events `on_bridge_command`, `on_bridge_command_completion`, and `on_bridge_command_error`. ([#​1916](https://togithub.com/Pycord-Development/pycord/pull/1916)) - Added the `@client.once()` decorator, which serves as a one-time event listener. ([#​1940](https://togithub.com/Pycord-Development/pycord/pull/1940)) - Added support for text-related features in `StageChannel`. ([#​1936](https://togithub.com/Pycord-Development/pycord/pull/1936)) - Added support for one-time event listeners in `Client.listen`. ([#​1957](https://togithub.com/Pycord-Development/pycord/pull/1957)) - Added `current_page` argument to `Paginator.update()`. ([#​1983](https://togithub.com/Pycord-Development/pycord/pull/1983)) - Added application flag `application_auto_moderation_rule_create_badge`. ([#​1992](https://togithub.com/Pycord-Development/pycord/pull/1992)) - Added support for recording silence via new `sync_start` argument in `VoiceClient.start_recording()`. ([#​1984](https://togithub.com/Pycord-Development/pycord/pull/1984)) - Added `custom_message` to AutoModActionMetadata. ([#​2029](https://togithub.com/Pycord-Development/pycord/pull/2029)) - Added support for [voice messages](https://togithub.com/discord/discord-api-docs/pull/6082). ([#​2016](https://togithub.com/Pycord-Development/pycord/pull/2016)) - Added `data` attribute to all [Raw Event payloads](https://docs.pycord.dev/en/master/api/models.html#events). ([#​2023](https://togithub.com/Pycord-Development/pycord/pull/2023)) - Added and documented missing `AuditLogAction` enums. ([#​2030](https://togithub.com/Pycord-Development/pycord/pull/2030), [#​2171](https://togithub.com/Pycord-Development/pycord/pull/2171)) - Added AutoMod-related models for `AuditLogDiff` enums. ([#​2030](https://togithub.com/Pycord-Development/pycord/pull/2030)) - Added `Interaction.respond` and `Interaction.edit` as shortcut responses. ([#​2026](https://togithub.com/Pycord-Development/pycord/pull/2026)) - Added `view.parent` which is set when the view is sent by `interaction.response.send_message`. ([#​2036](https://togithub.com/Pycord-Development/pycord/pull/2036)) - Added methods `bridge.Bot.walk_bridge_commands` and `BridgeCommandGroup.walk_commands`. ([#​1867](https://togithub.com/Pycord-Development/pycord/pull/1867)) - Added support for usernames and modified multiple methods accordingly. ([#​2042](https://togithub.com/Pycord-Development/pycord/pull/2042)) - Added `icon` and `unicode_emoji` arguments to `Guild.create_role`. ([#​2086](https://togithub.com/Pycord-Development/pycord/pull/2086)) - Added `cooldown` and `max_concurrency` attributes to `SlashCommandGroup`. ([#​2091](https://togithub.com/Pycord-Development/pycord/pull/2091)) - Added embedded activities Gartic Phone and Jamspace. ([#​2102](https://togithub.com/Pycord-Development/pycord/pull/2102)) - Added `bridge.Context` type as a `Union` of subclasses. ([#​2106](https://togithub.com/Pycord-Development/pycord/pull/2106)) - Added support for type-hinting slash command options with `typing.Annotated`. ([#​2124](https://togithub.com/Pycord-Development/pycord/pull/2124)) - Added `suppress` and `allowed_mentions` parameters to `Webhook` and `InteractionResponse` edit methods. ([#​2138](https://togithub.com/Pycord-Development/pycord/pull/2138)) - Added `wait_finish` parameter to `VoiceClient.play` for awaiting the end of a play. ([#​2194](https://togithub.com/Pycord-Development/pycord/pull/2194)) - Added support for custom bot status. ([#​2206](https://togithub.com/Pycord-Development/pycord/pull/2206)) - Added function `Guild.delete_auto_moderation_rule`. ([#​2153](https://togithub.com/Pycord-Development/pycord/pull/2153)) - Added `VoiceChannel.slowmode_delay`. ([#​2112](https://togithub.com/Pycord-Development/pycord/pull/2112)) - Added `ForumChannel.default_reaction_emoji` attribute. ([#​2178](https://togithub.com/Pycord-Development/pycord/pull/2178)) - Added `default_reaction_emoji` parameter to `Guild.create_forum_channel` and `ForumChannel.edit` methods. ([#​2178](https://togithub.com/Pycord-Development/pycord/pull/2178)) - Added `applied_tags` parameter to `Webhook.send` method. ([#​2322](https://togithub.com/Pycord-Development/pycord/pull/2322)) - Added `User.avatar_decoration`. ([#​2131](https://togithub.com/Pycord-Development/pycord/pull/2131)) - Added support for guild onboarding related features. ([#​2127](https://togithub.com/Pycord-Development/pycord/pull/2127)) - Added support for monetization related objects and events. ([#​2273](https://togithub.com/Pycord-Development/pycord/pull/2273)) - Added `AttachmentFlags` and attachment attributes `expires_at`, `issued_at` and `hm`. ([#​2342](https://togithub.com/Pycord-Development/pycord/pull/2342)) - Added `invitable` and `slowmode_delay` to `Thread` creation methods. ([#​2350](https://togithub.com/Pycord-Development/pycord/pull/2350)) - Added support for voice channel statuses. ([#​2368](https://togithub.com/Pycord-Development/pycord/pull/2368)) - Added `enforce_nonce` parameter for message sending. ([#​2370](https://togithub.com/Pycord-Development/pycord/pull/2370)) - Added audit log support for voice channel status. ([#​2373](https://togithub.com/Pycord-Development/pycord/pull/2373)) ##### Changed - Changed default for all `name_localizations` and `description_localizations` attributes from being `None` to being `MISSING`. ([#​1866](https://togithub.com/Pycord-Development/pycord/pull/1866)) - Changed `ffmpeg` output suppression when recording voice channels. ([#​1993](https://togithub.com/Pycord-Development/pycord/pull/1993)) - Changed file-upload size limit from 8 MB to 25 MB accordingly. ([#​2014](https://togithub.com/Pycord-Development/pycord/pull/2014)) - Changed the behavior of retrieving bans to accurately reflect the API. ([#​1922](https://togithub.com/Pycord-Development/pycord/pull/1922)) - Changed `Interaction.channel` to be received from the gateway, allowing it to be `DMChannel` or `GroupChannel`. ([#​2025](https://togithub.com/Pycord-Development/pycord/pull/2025)) - Changed `DMChannel.recipients` to potentially be `None`. ([#​2025](https://togithub.com/Pycord-Development/pycord/pull/2025)) - Changed the behavior to store `view.message` when receiving a component interaction, while also changing `view.message` not to be set when sending view through `InteractionResponse.send_message`. ([#​2036](https://togithub.com/Pycord-Development/pycord/pull/2036)) - Changed the fetching of attributes shared between text-based and Slash Commands in Bridge Commands to be dynamic. ([#​1867](https://togithub.com/Pycord-Development/pycord/pull/1867)) - `discord.Embed` attributes (such as author, footer, etc.) now return instances of their respective classes when set and `None` otherwise. ([#​2063](https://togithub.com/Pycord-Development/pycord/pull/2063)) - Changed `default_avatar` behavior to depend on the user's username migration status. ([#​2087](https://togithub.com/Pycord-Development/pycord/pull/2087)) - Changed type hints of `command_prefix` and `help_command` arguments to be accurate. ([#​2099](https://togithub.com/Pycord-Development/pycord/pull/2099)) - Replaced `orjson` features with `msgspec` in the codebase. ([#​2170](https://togithub.com/Pycord-Development/pycord/pull/2170)) - `BridgeOption` must now be used for arguments in bridge commands. ([#​2252](https://togithub.com/Pycord-Development/pycord/pull/2252)) ##### Removed - Removed `Client.once` in favour of `once` argument in `Client.listen`. ([#​1957](https://togithub.com/Pycord-Development/pycord/pull/1957)) - Removed `Embed.Empty` in favour of `None`, and `EmbedProxy` in favour of individual classes. ([#​2063](https://togithub.com/Pycord-Development/pycord/pull/2063)) ##### Fixed - Fixed `AttributeError` caused by [#​1957](https://togithub.com/Pycord-Development/pycord/pull/1957) when using listeners in cogs. ([#​1989](https://togithub.com/Pycord-Development/pycord/pull/1989)) - Fixed an issue in editing webhook messages in forum posts and private threads. ([#​1981](https://togithub.com/Pycord-Development/pycord/pull/1981)). - Fixed `View.message` not being set when view is sent using webhooks, including `Interaction.followup.send` or when a message is edited. ([#​1997](https://togithub.com/Pycord-Development/pycord/pull/1997)) - Fixed `None` being handled incorrectly for avatar in `ClientUser.edit`. ([#​1994](https://togithub.com/Pycord-Development/pycord/pull/1994)) - Fixed scheduled events breaking when changing the location from external to a channel. ([#​1998](https://togithub.com/Pycord-Development/pycord/pull/1998)) - Fixed boolean converter breaking for Bridge Commands. ([#​1999](https://togithub.com/Pycord-Development/pycord/pull/1999)) - Fixed bridge command options not working. ([#​1999](https://togithub.com/Pycord-Development/pycord/pull/1999)) - Fixed `TypeError` being raised when passing `name` argument to bridge groups. ([#​2000](https://togithub.com/Pycord-Development/pycord/pull/2000)) - Fixed `TypeError` in `AutoModRule`. ([#​2029](https://togithub.com/Pycord-Development/pycord/pull/2029)) - Fixed the functionality to override the default `on_application_command_error` behavior using listeners. ([#​2044](https://togithub.com/Pycord-Development/pycord/pull/2044)) - Fixed unloading of cogs with bridge commands. ([#​2048](https://togithub.com/Pycord-Development/pycord/pull/2048)) - Fixed the `individual` slash command synchronization method. ([#​1925](https://togithub.com/Pycord-Development/pycord/pull/1925)) - Fixed an issue that occurred when `webhooks_update` event payload channel ID was `None`. ([#​2078](https://togithub.com/Pycord-Development/pycord/pull/2078)) - Fixed major `TypeError` when an `AuditLogEntry` has no user. ([#​2079](https://togithub.com/Pycord-Development/pycord/pull/2079)) - Fixed `HTTPException` when trying to create a forum thread with files. ([#​2075](https://togithub.com/Pycord-Development/pycord/pull/2075)) - Fixed `before_invoke` not being run for `SlashCommandGroup`. ([#​2091](https://togithub.com/Pycord-Development/pycord/pull/2091)) - Fixed `AttributeError` when accessing a `Select` object's values when it hasn't been interacted with. ([#​2104](https://togithub.com/Pycord-Development/pycord/pull/2104)) - Fixed `before_invoke` being run twice for slash subcommands. ([#​2139](https://togithub.com/Pycord-Development/pycord/pull/2139)) - Fixed `Guild._member_count` sometimes not being set. ([#​2145](https://togithub.com/Pycord-Development/pycord/pull/2145)) - Fixed `Thread.applied_tags` not being updated. ([#​2146](https://togithub.com/Pycord-Development/pycord/pull/2146)) - Fixed type hinting of `author` property of `ApplicationContext` to include type-hinting of `User` or `Member`. ([#​2148](https://togithub.com/Pycord-Development/pycord/pull/2148)) - Fixed missing `delete_after` parameter in overload type-hinting for `Webhook.send()`. ([#​2156](https://togithub.com/Pycord-Development/pycord/pull/2156)) - Fixed `ScheduledEvent.creator_id` returning `str` instead of `int`. ([#​2162](https://togithub.com/Pycord-Development/pycord/pull/2162)) - Fixed `_bytes_to_base64_data` not defined. ([#​2185](https://togithub.com/Pycord-Development/pycord/pull/2185)) - Fixed inaccurate `Union` type hint of `values` argument of `basic_autocomplete` to include `Iterable[OptionChoice]`. ([#​2164](https://togithub.com/Pycord-Development/pycord/pull/2164)) - Fixed initial message inside of the create thread payload sending legacy beta payload. ([#​2191](https://togithub.com/Pycord-Development/pycord/pull/2191)) - Fixed a misplaced payload object inside of the thread creation payload. ([#​2192](https://togithub.com/Pycord-Development/pycord/pull/2192)) - Fixed `DMChannel.recipient` and `User.dm_channel` being `None`. ([#​2219](https://togithub.com/Pycord-Development/pycord/pull/2219)) - Fixed `ffmpeg` being terminated prematurely when piping audio stream. ([#​2240](https://togithub.com/Pycord-Development/pycord/pull/2240)) - Fixed tasks looping infinitely when `tzinfo` is neither `None` nor UTC. ([#​2196](https://togithub.com/Pycord-Development/pycord/pull/2196)) - Fixed `AttributeError` when running permission checks without the `bot` scope. ([#​2113](https://togithub.com/Pycord-Development/pycord/issues/2113)) - Fixed `Option` not working on bridge commands because `ext.commands.Command` doesn't recognize them. ([#​2256](https://togithub.com/Pycord-Development/pycord/pull/2256)) - Fixed offset-aware tasks causing `TypeError` when being prepared. ([#​2271](https://togithub.com/Pycord-Development/pycord/pull/2271)) - Fixed `AttributeError` when serializing commands with `Annotated` type hints. ([#​2243](https://togithub.com/Pycord-Development/pycord/pull/2243)) - Fixed `Intents.all()` returning the wrong value. ([#​2257](https://togithub.com/Pycord-Development/pycord/issues/2257)) - Fixed `AuditLogIterator` not respecting the `after` parameter. ([#​2295](https://togithub.com/Pycord-Development/pycord/issues/2295)) - Fixed `AttributeError` when failing to establish initial websocket connection. ([#​2301](https://togithub.com/Pycord-Development/pycord/pull/2301)) - Fixed `AttributeError` caused by `command.cog` being `MISSING`. ([#​2303](https://togithub.com/Pycord-Development/pycord/issues/2303)) - Fixed `self.use_default_buttons` being assumed truthy by `Paginator.update`. ([#​2319](https://togithub.com/Pycord-Development/pycord/pull/2319)) - Fixed `AttributeError` when comparing application commands with non-command objects. ([#​2299](https://togithub.com/Pycord-Development/pycord/issues/2299)) - Fixed `AttributeError` when copying groups on startup. ([#​2331](https://togithub.com/Pycord-Development/pycord/issues/2331)) - Fixed application command options causing errors if declared through the option decorator or kwarg. ([#​2332](https://togithub.com/Pycord-Development/pycord/issues/2332)) - Fixed options declared using the parameter default value syntax always being optional. ([#​2333](https://togithub.com/Pycord-Development/pycord/issues/2333)) - Fixed `BridgeContext` type hints raising an exception for unsupported option type. ([#​2337](https://togithub.com/Pycord-Development/pycord/pull/2337)) - Fixed `TypeError` due to `(Sync)WebhookMessage._thread_id` being set to `None`. ([#​2343](https://togithub.com/Pycord-Development/pycord/pull/2343)) - Fixed `AttributeError` due to `entitlements` not being included in `Interaction.__slots__`. ([#​2345](https://togithub.com/Pycord-Development/pycord/pull/2345)) - Fixed `Thread.me` being out of date and added the thread owner to `Thread.members` on creation. ([#​1296](https://togithub.com/Pycord-Development/pycord/issues/1296)) - Fixed keyword argument wildcard of `bridge.has_permissions` having the wrong type hint. ([#​2364](https://togithub.com/Pycord-Development/pycord/pull/2364)) - Fixed enum to support stringified annotations. ([#​2367](https://togithub.com/Pycord-Development/pycord/pull/2367)) ### [`v2.4.1`](https://togithub.com/Pycord-Development/pycord/blob/HEAD/CHANGELOG.md#241---2023-03-20) [Compare Source](https://togithub.com/Pycord-Development/pycord/compare/v2.4.0...v2.4.1) ##### Changed - Updated the values of the `Color.embed_background()` classmethod to correspond with new theme colors in the app. ([#​1931](https://togithub.com/Pycord-Development/pycord/pull/1931)) ##### Fixed - Fixed the type-hinting of `SlashCommandGroup.walk_commands()` to reflect actual behavior. ([#​1838](https://togithub.com/Pycord-Development/pycord/pull/1838)) - Fixed the voice IP discovery due to the recent [announced change](https://discord.com/channels/613425648685547541/697138785317814292/1080623873629884486). ([#​1955](https://togithub.com/Pycord-Development/pycord/pull/1955)) - Fixed `reason` being passed to the wrong method in `guild.create_auto_moderation_rule`. ([#​1960](https://togithub.com/Pycord-Development/pycord/pull/1960)) ### [`v2.4.0`](https://togithub.com/Pycord-Development/pycord/blob/HEAD/CHANGELOG.md#240---2023-02-10) [Compare Source](https://togithub.com/Pycord-Development/pycord/compare/v2.3.3...v2.4.0) ##### Added - Added new AutoMod trigger metadata properties `regex_patterns`, `allow_list`, and `mention_total_limit`; and added the `mention_spam` trigger type. ([#​1809](https://togithub.com/Pycord-Development/pycord/pull/1809)) - Added missing `image` parameter to `Guild.create_scheduled_event()` method. ([#​1831](https://togithub.com/Pycord-Development/pycord/pull/1831)) - New `ApplicationRoleConnectionMetadata` class for application role connection metadata, along with the `fetch_role_connection_metadata_records` and `update_role_connection_metadata_records` methods in `Client`. ([#​1791](https://togithub.com/Pycord-Development/pycord/pull/1791)) - Added new message types, `role_subscription_purchase`, `interaction_premium_upsell`, `stage_start`, `stage_end`, `stage_speaker`, `stage_raise_hand`, `stage_topic`, and `guild_application_premium_subscription`. ([#​1852](https://togithub.com/Pycord-Development/pycord/pull/1852)) - Added new `EmbeddedActivity` values. ([#​1859](https://togithub.com/Pycord-Development/pycord/pull/1859)) - Added new `suppress_notifications` to `MessageFlags`. ([#​1912](https://togithub.com/Pycord-Development/pycord/pull/1912)) - Added GIF sticker format type to the `StickerFormatType` enum. ([#​1915](https://togithub.com/Pycord-Development/pycord/pull/1915)) - Added new raw events: `raw_member_remove`, `raw_thread_update`, and `raw_thread_member_remove`. ([#​1880](https://togithub.com/Pycord-Development/pycord/pull/1880)) - Improved support for setting channel types & added new channel types for `discord.Option`. ([#​1883](https://togithub.com/Pycord-Development/pycord/pull/1883)) ##### Changed - Changed `EmbeddedActivity` values to update accordingly with the new activities. ([#​1859](https://togithub.com/Pycord-Development/pycord/pull/1859)) - Advanced version info is now stored as a dict in `version_info.advanced` instead of attributes on the `version_info` object. ([#​1920](https://togithub.com/Pycord-Development/pycord/pull/1920)) - The `version_info.release_level` attribute has been reverted to its previous name, `releaselevel`. ([#​1920](https://togithub.com/Pycord-Development/pycord/pull/1920)) ##### Fixed - Fixed bugs in `Page.update_files` where file objects stored in memory were causing an `AttributeError`, and `io.BytesIO` files didn't send properly more than once. ([#​1869](https://togithub.com/Pycord-Development/pycord/pull/1869) & [#​1881](https://togithub.com/Pycord-Development/pycord/pull/1881)) - Fixed bridge groups missing the `parent` attribute. ([#​1823](https://togithub.com/Pycord-Development/pycord/pull/1823)) - Fixed issues with creating auto moderation rules. ([#​1822](https://togithub.com/Pycord-Development/pycord/pull/1822)) ### [`v2.3.3`](https://togithub.com/Pycord-Development/pycord/blob/HEAD/CHANGELOG.md#233---2023-02-10) [Compare Source](https://togithub.com/Pycord-Development/pycord/compare/v2.3.2...v2.3.3) - Fixed an unhandled `KeyError` exception when receiving GIF stickers, causing crashes. ([#​1915](https://togithub.com/Pycord-Development/pycord/pull/1915)) ### [`v2.3.2`](https://togithub.com/Pycord-Development/pycord/blob/HEAD/CHANGELOG.md#232---2022-12-03) [Compare Source](https://togithub.com/Pycord-Development/pycord/compare/v2.3.1...v2.3.2) ##### Fixed - Fixed another `AttributeError` relating to the new `bridge_commands` attribute on `ext.bridge.Bot`. ([#​1815](https://togithub.com/Pycord-Development/pycord/pull/1815)) - Fixed an `AttributeError` in select relating to the select type. ([#​1814](https://togithub.com/Pycord-Development/pycord/pull/1814)) - Fixed `Thread.applied_tags` always returning an empty list. ([#​1817](https://togithub.com/Pycord-Development/pycord/pull/1817)) ### [`v2.3.1`](https://togithub.com/Pycord-Development/pycord/blob/HEAD/CHANGELOG.md#231---2022-11-27) [Compare Source](https://togithub.com/Pycord-Development/pycord/compare/v2.3.0...v2.3.1) ##### Fixed - Fixed `AttributeError` relating to the new `bridge_commands` attribute on `ext.bridge.Bot`. ([#​1802](https://togithub.com/Pycord-Development/pycord/pull/1802)) ### [`v2.3.0`](https://togithub.com/Pycord-Development/pycord/blob/HEAD/CHANGELOG.md#230---2022-11-23) [Compare Source](https://togithub.com/Pycord-Development/pycord/compare/v2.2.2...v2.3.0) ##### Added - New brief Attribute to BridgeSlashCommand. ([#​1676](https://togithub.com/Pycord-Development/pycord/pull/1676)) - Python 3.11 support. ([#​1680](https://togithub.com/Pycord-Development/pycord/pull/1680)) - New select types `user`, `role`, `mentionable`, and `channel` - Along with their respective types and shortcut decorators. ([#​1702](https://togithub.com/Pycord-Development/pycord/pull/1702)) - Added support for age-restricted (NSFW) commands. ([#​1775](https://togithub.com/Pycord-Development/pycord/pull/1775)) - New flags: `PublicUserFlags.active_developer` & `ApplicationFlags.active`. ([#​1776](https://togithub.com/Pycord-Development/pycord/pull/1776)) - Support for new forum features including tags, default slowmode, and default sort order. ([#​1636](https://togithub.com/Pycord-Development/pycord/pull/1636)) - Support for new thread attributes `total_message_sent` and `is_pinned`. ([#​1636](https://togithub.com/Pycord-Development/pycord/pull/1636)) - Added `bridge_commands` attribute to `ext.bridge.Bot` for access to bridge command objects. ([#​1787](https://togithub.com/Pycord-Development/pycord/pull/1787)) - Updated `Guild.features` to include new and previously missing features. ([#​1788](https://togithub.com/Pycord-Development/pycord/pull/1788)) ##### Fixed - Fix bridge.has_permissions. ([#​1695](https://togithub.com/Pycord-Development/pycord/pull/1695)) - Fix audit log overwrite type always resulting in `None`. ([#​1716](https://togithub.com/Pycord-Development/pycord/pull/1716)) - Fixed error when using `suppress` kwarg in `send()`. ([#​1719](https://togithub.com/Pycord-Development/pycord/pull/1719) & [#​1723](https://togithub.com/Pycord-Development/pycord/pull/1723)) ##### Changed

Configuration

📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.



This PR has been generated by Mend Renovate. View repository job log here.