From 0798ec1ca0a84515ef750beac6cbb2251ca32cda Mon Sep 17 00:00:00 2001 From: vmphase Date: Fri, 12 Jun 2026 18:55:22 +0300 Subject: [PATCH 01/10] fix(channel): sync_permissions type mismatch --- discord/channel.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/discord/channel.py b/discord/channel.py index 7cb6fa2698..650795ffaf 100644 --- a/discord/channel.py +++ b/discord/channel.py @@ -2091,7 +2091,7 @@ async def edit( bitrate: int = ..., user_limit: int = ..., position: int = ..., - sync_permissions: int = ..., + sync_permissions: bool = ..., category: CategoryChannel | None = ..., overwrites: Mapping[Role | Member, PermissionOverwrite] = ..., rtc_region: VoiceRegion | None = ..., @@ -2778,7 +2778,7 @@ async def edit( name: str = ..., topic: str | None = ..., position: int = ..., - sync_permissions: int = ..., + sync_permissions: bool = ..., category: CategoryChannel | None = ..., overwrites: Mapping[Role | Member, PermissionOverwrite] = ..., rtc_region: VoiceRegion | None = ..., From 9acf629f8b1a36102de5960f2eebc6ee85708dc0 Mon Sep 17 00:00:00 2001 From: vmphase Date: Fri, 12 Jun 2026 19:00:31 +0300 Subject: [PATCH 02/10] fix(channel): MediaChannel.edit return mismatch --- discord/channel.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/discord/channel.py b/discord/channel.py index 650795ffaf..2646db492c 100644 --- a/discord/channel.py +++ b/discord/channel.py @@ -1507,7 +1507,7 @@ async def edit( require_tag: bool = ..., hide_media_download_options: bool = ..., overwrites: Mapping[Role | Member | Snowflake, PermissionOverwrite] = ..., - ) -> ForumChannel | None: ... + ) -> MediaChannel | None: ... async def edit(self, *, reason=None, **options): """|coro| From 778e80332d0d280abab89133290570f3d775f3c2 Mon Sep 17 00:00:00 2001 From: vmphase Date: Fri, 12 Jun 2026 19:02:16 +0300 Subject: [PATCH 03/10] fix(channel): _TextChannel edit "limit" param docstring mismatch --- discord/channel.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/discord/channel.py b/discord/channel.py index 2646db492c..10371bf4c8 100644 --- a/discord/channel.py +++ b/discord/channel.py @@ -674,7 +674,7 @@ def archived_threads( Parameters ---------- - limit: Optional[:class:`bool`] + limit: Optional[:class:`int`] The number of threads to retrieve. If ``None``, retrieves every archived thread in the channel. Note, however, that this would make it a slow operation. From b0ac275879657b51226f353c2d11be4ef1bbaa9d Mon Sep 17 00:00:00 2001 From: vmphase Date: Fri, 12 Jun 2026 19:04:33 +0300 Subject: [PATCH 04/10] refactor(channel): remove unused imports; remove misleading docs --- discord/channel.py | 14 +------------- 1 file changed, 1 insertion(+), 13 deletions(-) diff --git a/discord/channel.py b/discord/channel.py index 10371bf4c8..72157094d5 100644 --- a/discord/channel.py +++ b/discord/channel.py @@ -51,14 +51,12 @@ InviteTarget, SortOrder, StagePrivacyLevel, -) -from .enums import ThreadArchiveDuration as ThreadArchiveDurationEnum -from .enums import ( VideoQualityMode, VoiceChannelEffectAnimationType, VoiceRegion, try_enum, ) +from .enums import ThreadArchiveDuration as ThreadArchiveDurationEnum from .errors import ClientException, InvalidArgument from .file import File from .flags import ChannelFlags, MessageFlags @@ -2827,16 +2825,6 @@ async def edit(self, *, reason=None, **options): .. versionadded:: 2.0 - bitrate: :class:`int` - The channel's preferred audio bitrate in bits per second. - - user_limit: :class:`int` - The channel's limit for number of members that can be in a voice channel. - - slowmode_delay: :class:`int` - Specifies the slowmode rate limit for user in this channel, in seconds. - A value of `0` disables slowmode. The maximum value possible is `21600`. - Returns ------- Optional[:class:`.StageChannel`] From d9979d68e3a517612e7d67eb965645e4506d1ffd Mon Sep 17 00:00:00 2001 From: vmphase Date: Fri, 12 Jun 2026 19:07:38 +0300 Subject: [PATCH 05/10] refactor(channel): add missing MediaChannel.edit overload; fix docstring --- discord/channel.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/discord/channel.py b/discord/channel.py index 72157094d5..ada3fb8545 100644 --- a/discord/channel.py +++ b/discord/channel.py @@ -1507,6 +1507,9 @@ async def edit( overwrites: Mapping[Role | Member | Snowflake, PermissionOverwrite] = ..., ) -> MediaChannel | None: ... + @overload + async def edit(self) -> MediaChannel | None: ... + async def edit(self, *, reason=None, **options): """|coro| @@ -3525,7 +3528,7 @@ class VoiceChannelEffectSendEvent: Attributes ---------- - animation_type: :class:`int` + animation_type: :class:`VoiceChannelEffectAnimationType` The type of animation that is being sent. animation_id: :class:`int` The ID of the animation that is being sent. From 65c56a244435cecd4532b3f326ed0e974cb11f19 Mon Sep 17 00:00:00 2001 From: vmphase Date: Fri, 12 Jun 2026 19:10:07 +0300 Subject: [PATCH 06/10] fix(channel): revert docstring and include missing params --- discord/channel.py | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/discord/channel.py b/discord/channel.py index ada3fb8545..eccb6a154c 100644 --- a/discord/channel.py +++ b/discord/channel.py @@ -1509,7 +1509,7 @@ async def edit( @overload async def edit(self) -> MediaChannel | None: ... - + async def edit(self, *, reason=None, **options): """|coro| @@ -2784,6 +2784,9 @@ async def edit( overwrites: Mapping[Role | Member, PermissionOverwrite] = ..., rtc_region: VoiceRegion | None = ..., video_quality_mode: VideoQualityMode = ..., + bitrate: int = ..., + user_limit: int = ..., + slowmode_delay: int = ..., reason: str | None = ..., ) -> StageChannel | None: ... @@ -2828,6 +2831,16 @@ async def edit(self, *, reason=None, **options): .. versionadded:: 2.0 + bitrate: :class:`int` + The channel's preferred audio bitrate in bits per second. + + user_limit: :class:`int` + The channel's limit for number of members that can be in a stage channel. + + slowmode_delay: :class:`int` + Specifies the slowmode rate limit for user in this channel, in seconds. + A value of `0` disables slowmode. The maximum value possible is `21600`. + Returns ------- Optional[:class:`.StageChannel`] From 714c6db5b8e0e9e26b67e255f2d2108c8d63912a Mon Sep 17 00:00:00 2001 From: vmphase Date: Fri, 12 Jun 2026 19:16:37 +0300 Subject: [PATCH 07/10] chore: remove useless "| None| from send_nodification param --- discord/channel.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/discord/channel.py b/discord/channel.py index eccb6a154c..984345cddc 100644 --- a/discord/channel.py +++ b/discord/channel.py @@ -2695,7 +2695,7 @@ async def create_instance( topic: str, privacy_level: StagePrivacyLevel = MISSING, reason: str | None = None, - send_notification: bool | None = False, + send_notification: bool = False, ) -> StageInstance: """|coro| From 2a190817aa17416ec0166aa3c511af6b8da57e9a Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Fri, 12 Jun 2026 16:21:56 +0000 Subject: [PATCH 08/10] style(pre-commit): auto fixes from pre-commit.com hooks --- discord/channel.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/discord/channel.py b/discord/channel.py index 984345cddc..510bc57faf 100644 --- a/discord/channel.py +++ b/discord/channel.py @@ -51,12 +51,14 @@ InviteTarget, SortOrder, StagePrivacyLevel, +) +from .enums import ThreadArchiveDuration as ThreadArchiveDurationEnum +from .enums import ( VideoQualityMode, VoiceChannelEffectAnimationType, VoiceRegion, try_enum, ) -from .enums import ThreadArchiveDuration as ThreadArchiveDurationEnum from .errors import ClientException, InvalidArgument from .file import File from .flags import ChannelFlags, MessageFlags From 6b0f94c77f9462f94741fd0804160ccddd494d3c Mon Sep 17 00:00:00 2001 From: vmphase Date: Sat, 13 Jun 2026 13:13:39 +0300 Subject: [PATCH 09/10] chore: update changelog --- CHANGELOG.md | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 9515f21e80..2472c8ece1 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -12,10 +12,19 @@ These changes are available on the `master` branch, but have not yet been releas ### Added +- Added missing ``slowmode_delay``, ``user_limit``, and ``bitrate`` params to `StageChannel.edit`. + ([#3273](https://github.com/Pycord-Development/pycord/pull/3273)) + ### Changed ### Fixed +- Fix `StageChannel.create_instance` `send_notification` param type. + ([#3273](https://github.com/Pycord-Development/pycord/pull/3273)) +- Fix `VoiceChannel.edit` and `StageChannel.edit` overload `sync_permissions` type. + ([#3273](https://github.com/Pycord-Development/pycord/pull/3273)) +- Fix `MediaChannel.edit` overload return type. + ([#3273](https://github.com/Pycord-Development/pycord/pull/3273)) - Fix error message for `Guild.create_sticker`. ([#3263](https://github.com/Pycord-Development/pycord/pull/3263)) - Fix typehint for `SlashCommandGroup.__new__`. From 9a520f509b1e8e267ef0f4921b8f41f360d36777 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Sat, 13 Jun 2026 10:14:26 +0000 Subject: [PATCH 10/10] style(pre-commit): auto fixes from pre-commit.com hooks --- CHANGELOG.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 2472c8ece1..832591feba 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -12,8 +12,8 @@ These changes are available on the `master` branch, but have not yet been releas ### Added -- Added missing ``slowmode_delay``, ``user_limit``, and ``bitrate`` params to `StageChannel.edit`. - ([#3273](https://github.com/Pycord-Development/pycord/pull/3273)) +- Added missing `slowmode_delay`, `user_limit`, and `bitrate` params to + `StageChannel.edit`. ([#3273](https://github.com/Pycord-Development/pycord/pull/3273)) ### Changed