diff --git a/changelog/1005.misc.rst b/changelog/1005.misc.rst deleted file mode 100644 index 2ed3137a8b..0000000000 --- a/changelog/1005.misc.rst +++ /dev/null @@ -1 +0,0 @@ -Increase the default :attr:`Guild.filesize_limit` from 8MB to 25MB, matching the recent increase by Discord. diff --git a/changelog/1006.feature.rst b/changelog/1006.feature.rst deleted file mode 100644 index 68f8125413..0000000000 --- a/changelog/1006.feature.rst +++ /dev/null @@ -1,6 +0,0 @@ -Add new permission fields. -- :attr:`Permissions.manage_guild_expressions` (which :attr:`~Permissions.manage_emojis` and :attr:`~Permissions.manage_emojis_and_stickers` are now aliased to) -- :attr:`Permissions.view_creator_monetization_analytics` -- :attr:`Permissions.use_soundboard` -- :attr:`Permissions.send_voice_messages` -- :attr:`Permissions.use_external_sounds` diff --git a/changelog/1008.bugfix.rst b/changelog/1008.bugfix.rst deleted file mode 100644 index 7498ccecc1..0000000000 --- a/changelog/1008.bugfix.rst +++ /dev/null @@ -1 +0,0 @@ -Fix :meth:`ForumChannel.create_thread` usage with files only (and no other content), and fix file descriptions not being sent on thread creation. diff --git a/changelog/1009.bugfix.rst b/changelog/1009.bugfix.rst deleted file mode 100644 index 91ef65702a..0000000000 --- a/changelog/1009.bugfix.rst +++ /dev/null @@ -1 +0,0 @@ -Fix some instances where threads were not being returned in :attr:`AuditLogEntry.extra`. diff --git a/changelog/1013.bugfix.rst b/changelog/1013.bugfix.rst deleted file mode 100644 index 8a4889d903..0000000000 --- a/changelog/1013.bugfix.rst +++ /dev/null @@ -1 +0,0 @@ -:meth:`Guild.fetch_members` no longer requires the :attr:`~Intents.members` intent to be enabled when connecting to the gateway, now it solely depends on the intent being enabled in the developer portal. diff --git a/changelog/1018.bugfix.rst b/changelog/1018.bugfix.rst deleted file mode 100644 index 720b448949..0000000000 --- a/changelog/1018.bugfix.rst +++ /dev/null @@ -1 +0,0 @@ -|commands| Raise ``TypeError`` if :class:`~.ext.commands.InteractionBot` or :class:`~.ext.commands.AutoShardedInteractionBot` has prefix commands related things in a :class:`~.ext.commands.Cog` diff --git a/changelog/1020.misc.rst b/changelog/1020.misc.rst deleted file mode 100644 index da97e5d9cc..0000000000 --- a/changelog/1020.misc.rst +++ /dev/null @@ -1 +0,0 @@ -Update Sphinx to v7.0.0. diff --git a/changelog/1025.feature.rst b/changelog/1025.feature.rst deleted file mode 100644 index 714dcdf4c8..0000000000 --- a/changelog/1025.feature.rst +++ /dev/null @@ -1,7 +0,0 @@ -Add support for new username system - see the official `help article `__ for details. Existing functionality is kept backwards-compatible while the migration is still ongoing. -- Add :attr:`User.global_name`, and update attributes/methods to account for it: - - :attr:`User.display_name` and :attr:`Member.display_name` - - :meth:`Guild.get_member_named` - - |commands| :class:`~ext.commands.UserConverter` and :class:`~ext.commands.MemberConverter`, now largely matching the behavior of :meth:`Guild.get_member_named` -- Update ``str(user)`` and ``str(member)`` to not include ``#0`` discriminator of migrated users. -- Adjust :attr:`User.default_avatar` to account for new default avatar handling, also adding :attr:`DefaultAvatar.fuchsia`. diff --git a/changelog/1027.bugfix.rst b/changelog/1027.bugfix.rst deleted file mode 100644 index e6fe0a00fe..0000000000 --- a/changelog/1027.bugfix.rst +++ /dev/null @@ -1 +0,0 @@ -Fix error when trying to access :attr:`Client.application_flags` if an ``application_id`` was passed to the constructor. diff --git a/changelog/1029.bugfix.rst b/changelog/1029.bugfix.rst deleted file mode 100644 index 228abe9b6c..0000000000 --- a/changelog/1029.bugfix.rst +++ /dev/null @@ -1 +0,0 @@ -|commands| Fix member nickname not being used by :class:`~ext.commands.clean_content` converter when user wasn't found in mentions. diff --git a/changelog/1030.bugfix.rst b/changelog/1030.bugfix.rst deleted file mode 100644 index 95cabd8007..0000000000 --- a/changelog/1030.bugfix.rst +++ /dev/null @@ -1 +0,0 @@ -Raise :exc:`TypeError` in :meth:`Guild.create_automod_rule` and :meth:`AutoModRule.edit` when an action has an invalid type, instead of a rather cryptic error. diff --git a/changelog/1033.doc.rst b/changelog/1033.doc.rst deleted file mode 100644 index 72812c0cc4..0000000000 --- a/changelog/1033.doc.rst +++ /dev/null @@ -1 +0,0 @@ -Remove ``pins()`` method from unsupported channel types. diff --git a/changelog/1035.deprecate.rst b/changelog/1035.deprecate.rst deleted file mode 100644 index 210816ff91..0000000000 --- a/changelog/1035.deprecate.rst +++ /dev/null @@ -1 +0,0 @@ -The :class:`PartyType` enum is deprecated, as voice activity IDs are not officially documented and the enum regularly becomes outdated. diff --git a/changelog/1039.doc.rst b/changelog/1039.doc.rst deleted file mode 100644 index 095efe2109..0000000000 --- a/changelog/1039.doc.rst +++ /dev/null @@ -1 +0,0 @@ -Update "Creating a Bot Account" page with newer images and synchronise info according to latest changes made by Discord. diff --git a/changelog/1040.feature.rst b/changelog/1040.feature.rst deleted file mode 100644 index b1119f3542..0000000000 --- a/changelog/1040.feature.rst +++ /dev/null @@ -1 +0,0 @@ -Support ``animated`` emoji field in reaction removal events (e.g. :func:`on_raw_reaction_remove`). diff --git a/changelog/1041.feature.rst b/changelog/1041.feature.rst deleted file mode 100644 index 95d8928e67..0000000000 --- a/changelog/1041.feature.rst +++ /dev/null @@ -1,3 +0,0 @@ -Implement receiving voice messages. -- New flag: :class:`MessageFlags.is_voice_message` -- New :class:`Attachment` fields: :attr:`~Attachment.duration`, :attr:`~Attachment.waveform` diff --git a/changelog/1044.feature.rst b/changelog/1044.feature.rst deleted file mode 100644 index 714dcdf4c8..0000000000 --- a/changelog/1044.feature.rst +++ /dev/null @@ -1,7 +0,0 @@ -Add support for new username system - see the official `help article `__ for details. Existing functionality is kept backwards-compatible while the migration is still ongoing. -- Add :attr:`User.global_name`, and update attributes/methods to account for it: - - :attr:`User.display_name` and :attr:`Member.display_name` - - :meth:`Guild.get_member_named` - - |commands| :class:`~ext.commands.UserConverter` and :class:`~ext.commands.MemberConverter`, now largely matching the behavior of :meth:`Guild.get_member_named` -- Update ``str(user)`` and ``str(member)`` to not include ``#0`` discriminator of migrated users. -- Adjust :attr:`User.default_avatar` to account for new default avatar handling, also adding :attr:`DefaultAvatar.fuchsia`. diff --git a/changelog/1047.bugfix.rst b/changelog/1047.bugfix.rst deleted file mode 100644 index e8a25b5829..0000000000 --- a/changelog/1047.bugfix.rst +++ /dev/null @@ -1 +0,0 @@ -Fix permission resolution for :class:`Thread`\s to use :attr:`Permissions.send_messages_in_threads` instead of :attr:`Permissions.send_messages` for calculating implicit permissions. diff --git a/changelog/1051.bugfix.rst b/changelog/1051.bugfix.rst deleted file mode 100644 index de4cb4ac01..0000000000 --- a/changelog/1051.bugfix.rst +++ /dev/null @@ -1 +0,0 @@ -Fix typing issue with :class:`abc.User` protocol requirements, which previously resulted in :class:`User` and :class:`Member` not conforming to the protocol. diff --git a/changelog/1056.doc.rst b/changelog/1056.doc.rst deleted file mode 100644 index 94d9af776c..0000000000 --- a/changelog/1056.doc.rst +++ /dev/null @@ -1 +0,0 @@ -Add note to :attr:`GuildChannel.create_invite <.abc.GuildChannel.create_invite>` and all subclasses about the new 30 day expiration limit imposed for non-community guilds. diff --git a/changelog/392.doc.rst b/changelog/392.doc.rst deleted file mode 100644 index 386bb9842f..0000000000 --- a/changelog/392.doc.rst +++ /dev/null @@ -1,5 +0,0 @@ -Split the monolithic API Reference pages into multiple sub-references. -- Main ``disnake`` API reference can now be found at :doc:`API Reference `. -- ``disnake.ext.commands`` API reference is now under :doc:`Commands API Reference `. -- Legacy ``api.html`` and ``ext/commands/api.html`` pages are deprecated. -- - Links with pre-existing references (eg ``/api.html#disnake.AppInfo``) will be redirected to their appropriate page. diff --git a/changelog/635.bugfix.rst b/changelog/635.bugfix.rst deleted file mode 100644 index b2f7ea0754..0000000000 --- a/changelog/635.bugfix.rst +++ /dev/null @@ -1 +0,0 @@ -Fix a bug with :meth:`ForumChannel.clone` not properly copying the ``default_auto_archive_duration`` attribute into the newly-cloned channel. diff --git a/changelog/635.feature.rst b/changelog/635.feature.rst deleted file mode 100644 index f1194ee82d..0000000000 --- a/changelog/635.feature.rst +++ /dev/null @@ -1 +0,0 @@ -Clone more attributes in :meth:`TextChannel.clone`, :meth:`VoiceChannel.clone`, :meth:`StageChannel.clone`, :meth:`CategoryChannel.clone`, and :meth:`ForumChannel.clone`, and add them as keyword-only parameters to make in-place edits. See the specific ``clone`` method's documentation for details. diff --git a/changelog/741.feature.rst b/changelog/741.feature.rst deleted file mode 100644 index 2df42e1896..0000000000 --- a/changelog/741.feature.rst +++ /dev/null @@ -1 +0,0 @@ -Add :attr:`Guild.max_stage_video_channel_users`. diff --git a/changelog/836.misc.rst b/changelog/836.misc.rst deleted file mode 100644 index 7fa864fc20..0000000000 --- a/changelog/836.misc.rst +++ /dev/null @@ -1,2 +0,0 @@ -Change dependency and environment management to use `pdm `__. -Please check `CONTRIBUTING.md `__ for more details. diff --git a/changelog/845.bugfix.rst b/changelog/845.bugfix.rst deleted file mode 100644 index 5bf809c092..0000000000 --- a/changelog/845.bugfix.rst +++ /dev/null @@ -1 +0,0 @@ -Fix :class:`VoiceClient` not continuing to play audio when moving between channels. diff --git a/changelog/863.bugfix.rst b/changelog/863.bugfix.rst deleted file mode 100644 index 5f7bbebe42..0000000000 --- a/changelog/863.bugfix.rst +++ /dev/null @@ -1 +0,0 @@ -Prevent stray voice websocket heartbeat threads after reconnecting. diff --git a/changelog/898.feature.rst b/changelog/898.feature.rst deleted file mode 100644 index de25e43526..0000000000 --- a/changelog/898.feature.rst +++ /dev/null @@ -1 +0,0 @@ -Implement new :attr:`AutoModTriggerMetadata.mention_raid_protection_enabled` parameter. diff --git a/changelog/899.feature.rst b/changelog/899.feature.rst deleted file mode 100644 index 39c1d23e48..0000000000 --- a/changelog/899.feature.rst +++ /dev/null @@ -1,3 +0,0 @@ -Add support for raid alerts. - - Add :attr:`Guild.safety_alerts_channel`. - - Add ``raid_alerts_disabled`` and ``safety_alerts_channel`` parameters to :meth:`Guild.edit`. diff --git a/changelog/904.feature.rst b/changelog/904.feature.rst deleted file mode 100644 index 1c4ac5dc89..0000000000 --- a/changelog/904.feature.rst +++ /dev/null @@ -1,5 +0,0 @@ -Add features related to role subscriptions. -- New message type: :attr:`~MessageType.role_subscription_purchase`. -- New role tags: :attr:`RoleTags.subscription_listing_id`, :attr:`RoleTags.is_available_for_purchase`, and :attr:`RoleTags.is_subscription`. -- New type :class:`RoleSubscriptionData` and attribute :attr:`Message.role_subscription_data`. -- New system channel flags: :attr:`~SystemChannelFlags.role_subscription_purchase_notifications` and :attr:`~SystemChannelFlags.role_subscription_purchase_notification_replies`. diff --git a/changelog/913.feature.rst b/changelog/913.feature.rst deleted file mode 100644 index 1c4ac5dc89..0000000000 --- a/changelog/913.feature.rst +++ /dev/null @@ -1,5 +0,0 @@ -Add features related to role subscriptions. -- New message type: :attr:`~MessageType.role_subscription_purchase`. -- New role tags: :attr:`RoleTags.subscription_listing_id`, :attr:`RoleTags.is_available_for_purchase`, and :attr:`RoleTags.is_subscription`. -- New type :class:`RoleSubscriptionData` and attribute :attr:`Message.role_subscription_data`. -- New system channel flags: :attr:`~SystemChannelFlags.role_subscription_purchase_notifications` and :attr:`~SystemChannelFlags.role_subscription_purchase_notification_replies`. diff --git a/changelog/919.feature.rst b/changelog/919.feature.rst deleted file mode 100644 index 1a52fe6ee8..0000000000 --- a/changelog/919.feature.rst +++ /dev/null @@ -1 +0,0 @@ -Add ``oldest_first`` parameter to :meth:`Guild.audit_logs`. diff --git a/changelog/928.feature.rst b/changelog/928.feature.rst deleted file mode 100644 index 41365022e0..0000000000 --- a/changelog/928.feature.rst +++ /dev/null @@ -1,3 +0,0 @@ -Implement Onboarding. - - Add :class:`Onboarding`, :class:`OnboardingPrompt` and :class:`OnboardingPromptOption`. - - Add :meth:`Guild.onboarding`. diff --git a/changelog/929.feature.0.rst b/changelog/929.feature.0.rst deleted file mode 100644 index cb05b71004..0000000000 --- a/changelog/929.feature.0.rst +++ /dev/null @@ -1 +0,0 @@ -Add ``flags`` parameter to message send and edit methods. diff --git a/changelog/929.feature.1.rst b/changelog/929.feature.1.rst deleted file mode 100644 index 9db6e3fd77..0000000000 --- a/changelog/929.feature.1.rst +++ /dev/null @@ -1 +0,0 @@ -Add :attr:`MessageFlags.suppress_notifications`. diff --git a/changelog/931.doc.rst b/changelog/931.doc.rst deleted file mode 100644 index 3bc0144b2e..0000000000 --- a/changelog/931.doc.rst +++ /dev/null @@ -1 +0,0 @@ -Update automod rule limits. diff --git a/changelog/935.misc.rst b/changelog/935.misc.rst deleted file mode 100644 index f7e5465c24..0000000000 --- a/changelog/935.misc.rst +++ /dev/null @@ -1 +0,0 @@ -Change the main linter to ``ruff`` instead of ``flake8``. diff --git a/changelog/936.misc.rst b/changelog/936.misc.rst deleted file mode 100644 index da97e5d9cc..0000000000 --- a/changelog/936.misc.rst +++ /dev/null @@ -1 +0,0 @@ -Update Sphinx to v7.0.0. diff --git a/changelog/940.bugfix.rst b/changelog/940.bugfix.rst deleted file mode 100644 index 355db8067e..0000000000 --- a/changelog/940.bugfix.rst +++ /dev/null @@ -1 +0,0 @@ -Fix KeepAlive logging un-intentionally attempting to interpolate stack trace logger calls diff --git a/changelog/942.bugfix.0.rst b/changelog/942.bugfix.0.rst deleted file mode 100644 index 384dee6de5..0000000000 --- a/changelog/942.bugfix.0.rst +++ /dev/null @@ -1 +0,0 @@ -Fix :meth:`.VoiceChannel.permissions_for` not disabling :attr:`Permissions.manage_webhooks` when the user cannot connect to the channel. diff --git a/changelog/942.feature.0.rst b/changelog/942.feature.0.rst deleted file mode 100644 index 67903ee4ff..0000000000 --- a/changelog/942.feature.0.rst +++ /dev/null @@ -1,9 +0,0 @@ -Messages can now be sent within :class:`StageChannel` instances. -- :class:`StageChannel` now inherits from :class:`abc.Messageable` -- New :class:`StageChannel` properties: - :attr:`.nsfw `, :attr:`.slowmode_delay `, :attr:`.last_message_id `, :attr:`.last_message ` -- New :class:`StageChannel` methods: - :func:`.is_nsfw `, :func:`.get_partial_message `, :func:`.delete_messages `, :func:`.purge `, :func:`.webhooks `, :func:`.create_webhook ` -- Add ``nsfw`` and ``slowmode_delay`` parameters to :func:`Guild.create_stage_channel` and :func:`CategoryChannel.create_stage_channel` -- Add ``nsfw`` and ``slowmode_delay`` parameters to :func:`StageChannel.edit` -- Add text related permission support to :func:`StageChannel.permissions_for`. diff --git a/changelog/942.feature.1.rst b/changelog/942.feature.1.rst deleted file mode 100644 index 46dda4fb33..0000000000 --- a/changelog/942.feature.1.rst +++ /dev/null @@ -1,2 +0,0 @@ -New message types that are sent within :class:`StageChannel` instances: -- :attr:`MessageType.stage_start`, :attr:`MessageType.stage_end`, :attr:`MessageType.stage_speaker`, and :attr:`MessageType.stage_topic`. diff --git a/changelog/942.feature.2.rst b/changelog/942.feature.2.rst deleted file mode 100644 index 34a93dde40..0000000000 --- a/changelog/942.feature.2.rst +++ /dev/null @@ -1 +0,0 @@ -Add edit support for ``user_limit`` to :meth:`StageChannel.edit`. diff --git a/changelog/942.feature.3.rst b/changelog/942.feature.3.rst deleted file mode 100644 index ddba6addd0..0000000000 --- a/changelog/942.feature.3.rst +++ /dev/null @@ -1 +0,0 @@ -Add support for setting ``user_limit`` and ``video_quality_mode`` when creating a :class:`StageChannel` with :func:`Guild.create_stage_channel`. diff --git a/changelog/944.doc.rst b/changelog/944.doc.rst deleted file mode 100644 index 1067db81c0..0000000000 --- a/changelog/944.doc.rst +++ /dev/null @@ -1 +0,0 @@ -|commands| Fix commands extension events being duplicated in search results. diff --git a/changelog/945.bugfix.rst b/changelog/945.bugfix.rst deleted file mode 100644 index 93220d1fc8..0000000000 --- a/changelog/945.bugfix.rst +++ /dev/null @@ -1 +0,0 @@ -:attr:`RawTypingEvent.timestamp` is now a timezone-aware :class:`~datetime.datetime` instead of a naive one. diff --git a/changelog/946.bugfix.rst b/changelog/946.bugfix.rst deleted file mode 100644 index 9477a6f0ca..0000000000 --- a/changelog/946.bugfix.rst +++ /dev/null @@ -1 +0,0 @@ -|commands| Allow referencing the same `ParamInfo` instance in multiple signatures. diff --git a/changelog/950.feature.rst b/changelog/950.feature.rst deleted file mode 100644 index bda8cd1edc..0000000000 --- a/changelog/950.feature.rst +++ /dev/null @@ -1,2 +0,0 @@ -Cleanup general error raising to be less confusing. -- Overall, most errors about incorrect types no longer include the internal error in their traceback. diff --git a/changelog/953.misc.rst b/changelog/953.misc.rst deleted file mode 100644 index 7fa864fc20..0000000000 --- a/changelog/953.misc.rst +++ /dev/null @@ -1,2 +0,0 @@ -Change dependency and environment management to use `pdm `__. -Please check `CONTRIBUTING.md `__ for more details. diff --git a/changelog/954.feature.rst b/changelog/954.feature.rst deleted file mode 100644 index 194e45a68f..0000000000 --- a/changelog/954.feature.rst +++ /dev/null @@ -1 +0,0 @@ -Add support for :attr:`AutoModBlockMessageAction.custom_message` diff --git a/changelog/960.bugfix.rst b/changelog/960.bugfix.rst deleted file mode 100644 index 4f80815e2c..0000000000 --- a/changelog/960.bugfix.rst +++ /dev/null @@ -1 +0,0 @@ -Fix attribute error when attempting to access :class:`DMChannel.flags` under certain circumstances. diff --git a/changelog/961.doc.rst b/changelog/961.doc.rst deleted file mode 100644 index 65996343af..0000000000 --- a/changelog/961.doc.rst +++ /dev/null @@ -1 +0,0 @@ -Remove incorrect documentation for :meth:`InvokableApplicationCommand.invoke`. diff --git a/changelog/962.feature.rst b/changelog/962.feature.rst deleted file mode 100644 index a51a22c899..0000000000 --- a/changelog/962.feature.rst +++ /dev/null @@ -1 +0,0 @@ -Support comparison of :class:`VoiceRegion` objects. diff --git a/changelog/963.doc.rst b/changelog/963.doc.rst deleted file mode 100644 index ce37823f78..0000000000 --- a/changelog/963.doc.rst +++ /dev/null @@ -1 +0,0 @@ -Add a searchbox for filtering the sidebar on the API Reference pages. diff --git a/changelog/967.bugfix.rst b/changelog/967.bugfix.rst deleted file mode 100644 index 22baddc994..0000000000 --- a/changelog/967.bugfix.rst +++ /dev/null @@ -1 +0,0 @@ -Fix voice connection discovery using incorrect packet sizes. diff --git a/changelog/968.misc.rst b/changelog/968.misc.rst deleted file mode 100644 index 1a50ae7c9b..0000000000 --- a/changelog/968.misc.rst +++ /dev/null @@ -1 +0,0 @@ -Support PyNaCl v1.5. diff --git a/changelog/974.bugfix.rst b/changelog/974.bugfix.rst deleted file mode 100644 index 4c46f9abf6..0000000000 --- a/changelog/974.bugfix.rst +++ /dev/null @@ -1 +0,0 @@ -Fix :meth:`Guild.get_or_fetch_members` not caching anything in the case of 1 unresolved ID. diff --git a/changelog/976.feature.rst b/changelog/976.feature.rst deleted file mode 100644 index 53358c5e95..0000000000 --- a/changelog/976.feature.rst +++ /dev/null @@ -1 +0,0 @@ -|commands| Add :meth:`Bot.get_listeners() `. diff --git a/changelog/984.feature.rst b/changelog/984.feature.rst deleted file mode 100644 index 21bbbe2ef1..0000000000 --- a/changelog/984.feature.rst +++ /dev/null @@ -1 +0,0 @@ -Add a new voice channel activity, :attr:`PartyType.gartic_phone`. diff --git a/changelog/986.deprecate.rst b/changelog/986.deprecate.rst deleted file mode 100644 index 8bcd24b3db..0000000000 --- a/changelog/986.deprecate.rst +++ /dev/null @@ -1 +0,0 @@ -:attr:`AutoModTriggerType.harmful_link` is obsolete, it is now enabled Discord-wide. diff --git a/changelog/988.feature.rst b/changelog/988.feature.rst deleted file mode 100644 index 2e1a68308b..0000000000 --- a/changelog/988.feature.rst +++ /dev/null @@ -1 +0,0 @@ -Add :attr:`ApplicationFlags.application_auto_moderation_rule_create_badge` diff --git a/changelog/989.feature.rst b/changelog/989.feature.rst deleted file mode 100644 index 68f8125413..0000000000 --- a/changelog/989.feature.rst +++ /dev/null @@ -1,6 +0,0 @@ -Add new permission fields. -- :attr:`Permissions.manage_guild_expressions` (which :attr:`~Permissions.manage_emojis` and :attr:`~Permissions.manage_emojis_and_stickers` are now aliased to) -- :attr:`Permissions.view_creator_monetization_analytics` -- :attr:`Permissions.use_soundboard` -- :attr:`Permissions.send_voice_messages` -- :attr:`Permissions.use_external_sounds` diff --git a/changelog/990.misc.rst b/changelog/990.misc.rst deleted file mode 100644 index 2e56043ffd..0000000000 --- a/changelog/990.misc.rst +++ /dev/null @@ -1 +0,0 @@ -Remove :func:`disnake.utils.parse_token` (never documented), which has been broken for newer tokens for some time, and was based on unofficial information about the token structure. diff --git a/changelog/991.bugfix.rst b/changelog/991.bugfix.rst deleted file mode 100644 index 98304b9b8f..0000000000 --- a/changelog/991.bugfix.rst +++ /dev/null @@ -1 +0,0 @@ -|commands| Fix type-checker support for :class:`~disnake.ext.commands.Range` and :class:`~disnake.ext.commands.String` by requiring type argument (i.e. ``Range[int, 1, 5]`` instead of ``Range[1, 5]``). diff --git a/changelog/991.deprecate.0.rst b/changelog/991.deprecate.0.rst deleted file mode 100644 index 50234e7f16..0000000000 --- a/changelog/991.deprecate.0.rst +++ /dev/null @@ -1 +0,0 @@ -|commands| :class:`~disnake.ext.commands.Range` and :class:`~disnake.ext.commands.String` now require a type argument (i.e. ``Range[int, 1, 5]`` instead of ``Range[1, 5]``, similarly with ``String[str, 2, 4]``). The old form is deprecated. diff --git a/changelog/991.deprecate.1.rst b/changelog/991.deprecate.1.rst deleted file mode 100644 index ae6ccfa020..0000000000 --- a/changelog/991.deprecate.1.rst +++ /dev/null @@ -1 +0,0 @@ -|commands| The mypy plugin is now a no-op. It was previously used for supporting ``Range[]`` and ``String[]`` annotations. diff --git a/changelog/992.doc.rst b/changelog/992.doc.rst deleted file mode 100644 index 09a0b76266..0000000000 --- a/changelog/992.doc.rst +++ /dev/null @@ -1 +0,0 @@ -Clarify docs about the :func:`.on_member_update` and :func:`.on_raw_member_update` events. diff --git a/changelog/995.bugfix.rst b/changelog/995.bugfix.rst deleted file mode 100644 index da6b06469f..0000000000 --- a/changelog/995.bugfix.rst +++ /dev/null @@ -1 +0,0 @@ -Fix audit log parsing issue with new user profile automod actions. diff --git a/changelog/996.bugfix.rst b/changelog/996.bugfix.rst deleted file mode 100644 index c996c3e3e3..0000000000 --- a/changelog/996.bugfix.rst +++ /dev/null @@ -1 +0,0 @@ -Improve :class:`GuildSticker` deserialization, fix :meth:`GuildSticker.edit` parameter types to match documentation. diff --git a/changelog/996.misc.rst b/changelog/996.misc.rst deleted file mode 100644 index 5652a20ce8..0000000000 --- a/changelog/996.misc.rst +++ /dev/null @@ -1 +0,0 @@ -Update typings of :attr:`Message.activity` and internal :class:`Team` payloads to match API documentation. diff --git a/changelog/997.feature.rst b/changelog/997.feature.rst deleted file mode 100644 index 68f8125413..0000000000 --- a/changelog/997.feature.rst +++ /dev/null @@ -1,6 +0,0 @@ -Add new permission fields. -- :attr:`Permissions.manage_guild_expressions` (which :attr:`~Permissions.manage_emojis` and :attr:`~Permissions.manage_emojis_and_stickers` are now aliased to) -- :attr:`Permissions.view_creator_monetization_analytics` -- :attr:`Permissions.use_soundboard` -- :attr:`Permissions.send_voice_messages` -- :attr:`Permissions.use_external_sounds` diff --git a/disnake/__init__.py b/disnake/__init__.py index 6fb2d6cb98..7f135e2283 100644 --- a/disnake/__init__.py +++ b/disnake/__init__.py @@ -14,7 +14,7 @@ __author__ = "Rapptz, EQUENOS" __license__ = "MIT" __copyright__ = "Copyright 2015-present Rapptz, 2021-present EQUENOS" -__version__ = "2.9.0a" +__version__ = "2.9.0" __path__ = __import__("pkgutil").extend_path(__path__, __name__) @@ -81,6 +81,6 @@ class VersionInfo(NamedTuple): serial: int -version_info: VersionInfo = VersionInfo(major=2, minor=9, micro=0, releaselevel="alpha", serial=0) +version_info: VersionInfo = VersionInfo(major=2, minor=9, micro=0, releaselevel="final", serial=0) logging.getLogger(__name__).addHandler(logging.NullHandler()) diff --git a/docs/whats_new.rst b/docs/whats_new.rst index d35c1c348a..d1d3064891 100644 --- a/docs/whats_new.rst +++ b/docs/whats_new.rst @@ -17,6 +17,152 @@ in specific versions. Please see :ref:`version_guarantees` for more information. .. towncrier release notes start +.. _vp2p9p0: + +v2.9.0 +------ + +This release comes with support for the new username system, text in stage, role subscriptions, silent messages, and onboarding. +The documentation has been updated, splitting the monolithic API Reference page into smaller :doc:`pages `. + +See below for a complete list of changes. + +Deprecations +~~~~~~~~~~~~ +- :attr:`AutoModTriggerType.harmful_link` is obsolete, it is now enabled Discord-wide. (:issue:`986`) +- The :class:`PartyType` enum is deprecated, as voice activity IDs are not officially documented and the enum regularly becomes outdated. (:issue:`1035`) +- |commands| :class:`~disnake.ext.commands.Range` and :class:`~disnake.ext.commands.String` now require a type argument (i.e. ``Range[int, 1, 5]`` instead of ``Range[1, 5]``, similarly with ``String[str, 2, 4]``). The old form is deprecated. (:issue:`991`) +- |commands| The mypy plugin is now a no-op. It was previously used for supporting ``Range[]`` and ``String[]`` annotations. (:issue:`991`) + +New Features +~~~~~~~~~~~~ +- Clone most attributes in :meth:`TextChannel.clone`, :meth:`VoiceChannel.clone`, :meth:`StageChannel.clone`, :meth:`CategoryChannel.clone`, and :meth:`ForumChannel.clone`, and add them as keyword-only parameters to make in-place edits. See the specific ``clone`` method's documentation for details. (:issue:`635`) +- Add :attr:`Guild.max_stage_video_channel_users`. (:issue:`741`) +- Implement new :attr:`AutoModTriggerMetadata.mention_raid_protection_enabled` parameter. (:issue:`898`) +- Add support for raid alerts. (:issue:`899`) + - Add :attr:`Guild.safety_alerts_channel`. + - Add ``raid_alerts_disabled`` and ``safety_alerts_channel`` parameters to :meth:`Guild.edit`. +- Add features related to role subscriptions. (:issue:`904`, :issue:`913`) + - New message type: :attr:`~MessageType.role_subscription_purchase`. + - New role tags: :attr:`RoleTags.subscription_listing_id`, :attr:`RoleTags.is_available_for_purchase`, and :attr:`RoleTags.is_subscription`. + - New type :class:`RoleSubscriptionData` and attribute :attr:`Message.role_subscription_data`. + - New system channel flags: :attr:`~SystemChannelFlags.role_subscription_purchase_notifications` and :attr:`~SystemChannelFlags.role_subscription_purchase_notification_replies`. +- Add ``oldest_first`` parameter to :meth:`Guild.audit_logs`. (:issue:`919`) +- Implement Onboarding. (:issue:`928`) + - Add :class:`Onboarding`, :class:`OnboardingPrompt` and :class:`OnboardingPromptOption`. + - Add :meth:`Guild.onboarding`. +- Add ``flags`` parameter to message send and edit methods. (:issue:`929`) +- Add :attr:`MessageFlags.suppress_notifications`. (:issue:`929`) +- Messages can now be sent within :class:`StageChannel` instances. (:issue:`942`) + - :class:`StageChannel` now inherits from :class:`abc.Messageable` + - New :class:`StageChannel` properties: + :attr:`.nsfw `, :attr:`.slowmode_delay `, :attr:`.last_message_id `, :attr:`.last_message ` + - New :class:`StageChannel` methods: + :func:`.is_nsfw `, :func:`.get_partial_message `, :func:`.delete_messages `, :func:`.purge `, :func:`.webhooks `, :func:`.create_webhook ` + - Add ``nsfw`` and ``slowmode_delay`` parameters to :func:`Guild.create_stage_channel` and :func:`CategoryChannel.create_stage_channel` + - Add ``nsfw`` and ``slowmode_delay`` parameters to :func:`StageChannel.edit` + - Add text related permission support to :func:`StageChannel.permissions_for`. +- New message types that are sent within :class:`StageChannel` instances: (:issue:`942`) + - :attr:`MessageType.stage_start`, :attr:`MessageType.stage_end`, :attr:`MessageType.stage_speaker`, and :attr:`MessageType.stage_topic`. +- Add edit support for ``user_limit`` to :meth:`StageChannel.edit`. (:issue:`942`) +- Add support for setting ``user_limit`` and ``video_quality_mode`` when creating a :class:`StageChannel` with :func:`Guild.create_stage_channel`. (:issue:`942`) +- Cleanup general error raising to be less confusing. (:issue:`950`) + - Overall, most errors about incorrect types no longer include the internal error in their traceback. +- Add support for :attr:`AutoModBlockMessageAction.custom_message` (:issue:`954`) +- Support comparison of :class:`VoiceRegion` objects. (:issue:`962`) +- Add a new voice channel activity, :attr:`PartyType.gartic_phone`. (:issue:`984`) +- Add :attr:`ApplicationFlags.application_auto_moderation_rule_create_badge` (:issue:`988`) +- Add new permission fields. (:issue:`989`, :issue:`997`, :issue:`1006`) + - :attr:`Permissions.manage_guild_expressions` (which :attr:`~Permissions.manage_emojis` and :attr:`~Permissions.manage_emojis_and_stickers` are now aliased to) + - :attr:`Permissions.view_creator_monetization_analytics` + - :attr:`Permissions.use_soundboard` + - :attr:`Permissions.send_voice_messages` + - :attr:`Permissions.use_external_sounds` +- Add support for new username system - see the official `help article `__ for details. Existing functionality is kept backwards-compatible while the migration is still ongoing. (:issue:`1025`, :issue:`1044`) + - Add :attr:`User.global_name`, and update attributes/methods to account for it: + - :attr:`User.display_name` and :attr:`Member.display_name` + - :meth:`Guild.get_member_named` + - Update ``str(user)`` and ``str(member)`` to not include ``#0`` discriminator of migrated users. + - Adjust :attr:`User.default_avatar` to account for new default avatar handling, also adding :attr:`DefaultAvatar.fuchsia`. +- Support ``animated`` emoji field in reaction removal events (e.g. :func:`on_raw_reaction_remove`). (:issue:`1040`) +- Implement receiving voice messages. (:issue:`1041`) + - New flag: :class:`MessageFlags.is_voice_message` + - New :class:`Attachment` fields: :attr:`~Attachment.duration`, :attr:`~Attachment.waveform` +- |commands| Add :meth:`Bot.get_listeners() `. (:issue:`976`) +- |commands| :class:`~ext.commands.UserConverter` and :class:`~ext.commands.MemberConverter`, now mostly match the behavior of :meth:`Guild.get_member_named` + +Bug Fixes +~~~~~~~~~ +- Fix a bug with :meth:`ForumChannel.clone` not properly copying the ``default_auto_archive_duration`` attribute into the newly-cloned channel. (:issue:`635`) +- Fix :class:`VoiceClient` not continuing to play audio when moving between channels. (:issue:`845`) +- Prevent stray voice websocket heartbeat threads after reconnecting. (:issue:`863`) +- Fix KeepAlive logging un-intentionally attempting to interpolate stack trace logger calls (:issue:`940`) +- Fix :meth:`.VoiceChannel.permissions_for` not disabling :attr:`Permissions.manage_webhooks` when the user cannot connect to the channel. (:issue:`942`) +- :attr:`RawTypingEvent.timestamp` is now a timezone-aware :class:`~datetime.datetime` instead of a naive one. (:issue:`945`) +- Fix attribute error when attempting to access :class:`DMChannel.flags` under certain circumstances. (:issue:`960`) +- Fix voice connection discovery using incorrect packet sizes. (:issue:`967`) +- Fix :meth:`Guild.get_or_fetch_members` not caching anything in the case of 1 unresolved ID. (:issue:`974`) +- Fix audit log parsing issue with new user profile automod actions. (:issue:`995`) +- Improve :class:`GuildSticker` deserialization, fix :meth:`GuildSticker.edit` parameter types to match documentation. (:issue:`996`) +- Fix :meth:`ForumChannel.create_thread` usage with files only (and no other content), and fix file descriptions not being sent on thread creation. (:issue:`1008`) +- Fix some instances where threads were not being returned in :attr:`AuditLogEntry.extra`. (:issue:`1009`) +- :meth:`Guild.fetch_members` no longer requires the :attr:`~Intents.members` intent to be enabled when connecting to the gateway, now it solely depends on the intent being enabled in the developer portal. (:issue:`1013`) +- Fix error when trying to access :attr:`Client.application_flags` if an ``application_id`` was passed to the constructor. (:issue:`1027`) +- Raise :exc:`TypeError` in :meth:`Guild.create_automod_rule` and :meth:`AutoModRule.edit` when an action has an invalid type, instead of a rather cryptic error. (:issue:`1030`) +- Fix permission resolution for :class:`Thread`\s to use :attr:`Permissions.send_messages_in_threads` instead of :attr:`Permissions.send_messages` for calculating implicit permissions. (:issue:`1047`) +- Fix typing issue with :class:`abc.User` protocol requirements, which previously resulted in :class:`User` and :class:`Member` not conforming to the protocol. (:issue:`1051`) +- |commands| Allow referencing the same `ParamInfo` instance in multiple signatures. (:issue:`946`) +- |commands| Fix type-checker support for :class:`~disnake.ext.commands.Range` and :class:`~disnake.ext.commands.String` by requiring type argument (i.e. ``Range[int, 1, 5]`` instead of ``Range[1, 5]``). (:issue:`991`) +- |commands| Raise ``TypeError`` if :class:`~.ext.commands.InteractionBot` or :class:`~.ext.commands.AutoShardedInteractionBot` has prefix commands related things in a :class:`~.ext.commands.Cog` (:issue:`1018`) +- |commands| Fix member nickname not being used by :class:`~ext.commands.clean_content` converter when user wasn't found in mentions. (:issue:`1029`) + +Documentation +~~~~~~~~~~~~~ +- Split the monolithic API Reference pages into multiple sub-references. (:issue:`392`) + - Main ``disnake`` API reference can now be found at :doc:`API Reference `. + - ``disnake.ext.commands`` API reference is now under :doc:`Commands API Reference `. + - Legacy ``api.html`` and ``ext/commands/api.html`` pages are deprecated. + - - Links with pre-existing references (eg ``/api.html#disnake.AppInfo``) will be redirected to their appropriate page. +- Update automod rule limits. (:issue:`931`) +- Remove incorrect documentation for :meth:`InvokableApplicationCommand.invoke`. (:issue:`961`) +- Add a searchbox for filtering the sidebar on the API Reference pages. (:issue:`963`) +- Clarify docs about the :func:`.on_member_update` and :func:`.on_raw_member_update` events. (:issue:`992`) +- Remove ``pins()`` method from unsupported channel types. (:issue:`1033`) +- Update "Creating a Bot Account" page with newer images and synchronise info according to latest changes made by Discord. (:issue:`1039`) +- Add note to :attr:`GuildChannel.create_invite <.abc.GuildChannel.create_invite>` and all subclasses about the new 30 day expiration limit imposed for non-community guilds. (:issue:`1056`) +- |commands| Fix commands extension events being duplicated in search results. (:issue:`944`) + +Miscellaneous +~~~~~~~~~~~~~ +- Change dependency and environment management to use `pdm `__. (:issue:`836`, :issue:`953`) + Please check `CONTRIBUTING.md `__ for more details. +- Change the main linter to ``ruff`` instead of ``flake8``. (:issue:`935`) +- Update Sphinx to v7.0.1. (:issue:`936`, :issue:`1020`) +- Support PyNaCl v1.5. (:issue:`968`) +- Remove :func:`disnake.utils.parse_token` (never documented), which has been broken for newer tokens for some time, and was based on unofficial information about the token structure. (:issue:`990`) +- Update typings of :attr:`Message.activity` and internal :class:`Team` payloads to match API documentation. (:issue:`996`) +- Increase the default :attr:`Guild.filesize_limit` from 8MB to 25MB, matching the recent increase by Discord. (:issue:`1005`) + + +.. _vp2p8p2: + +v2.8.2 +------ + +This maintainence release contains backports from v2.9.0. + +Bug Fixes +~~~~~~~~~ +- Fix audit log parsing issue with new user profile automod actions. (:issue:`995`) +- Improve :class:`GuildSticker` deserialization, fix :meth:`GuildSticker.edit` parameter types to match documentation. (:issue:`996`) +- Fix :meth:`ForumChannel.create_thread` usage with files only (and no other content), and fix file descriptions not being sent on thread creation. (:issue:`1008`) + +Miscellaneous +~~~~~~~~~~~~~ +- Update typings of :attr:`Message.activity` and internal :class:`Team` payloads to match API documentation. (:issue:`996`) +- Increase the default :attr:`Guild.filesize_limit` from 8MB to 25MB, matching the recent increase by Discord. (:issue:`1005`) + + .. _vp2p8p1: v2.8.1