Skip to content
Open
Show file tree
Hide file tree
Changes from 23 commits
Commits
Show all changes
24 commits
Select commit Hold shift + click to select a range
0798ec1
fix(channel): sync_permissions type mismatch
vmphase Jun 12, 2026
9acf629
fix(channel): MediaChannel.edit return mismatch
vmphase Jun 12, 2026
778e803
fix(channel): _TextChannel edit "limit" param docstring mismatch
vmphase Jun 12, 2026
b0ac275
refactor(channel): remove unused imports; remove misleading docs
vmphase Jun 12, 2026
d9979d6
refactor(channel): add missing MediaChannel.edit overload; fix docstring
vmphase Jun 12, 2026
65c56a2
fix(channel): revert docstring and include missing params
vmphase Jun 12, 2026
714c6db
chore: remove useless "| None| from send_nodification param
vmphase Jun 12, 2026
2a19081
style(pre-commit): auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Jun 12, 2026
6b0f94c
chore: update changelog
vmphase Jun 13, 2026
9a520f5
style(pre-commit): auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Jun 13, 2026
8645b95
Merge branch 'master' into fix/channel-issues
vmphase Jun 19, 2026
648879f
Merge branch 'master' into fix/channel-issues
vmphase Jul 2, 2026
aa5a990
Merge branch 'master' into fix/channel-issues
vmphase Jul 7, 2026
aae521a
Merge branch 'master' into fix/channel-issues
vmphase Jul 14, 2026
600e511
Merge branch 'master' into fix/channel-issues
vmphase Jul 26, 2026
e149381
Merge branch 'master' into fix/channel-issues
Paillat-dev Jul 26, 2026
a4c3482
Merge branch 'master' into fix/channel-issues
Lulalaby Jul 30, 2026
757bac6
Merge branch 'master' into fix/channel-issues
Lulalaby Jul 30, 2026
cc1db0e
Merge branch 'master' into fix/channel-issues
vmphase Aug 7, 2026
690bb6b
style(pre-commit): auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Aug 7, 2026
a9ba636
Merge branch 'Pycord-Development:master' into fix/channel-issues
vmphase Aug 10, 2026
ea4abd2
chore: update changelog
vmphase Aug 10, 2026
9485c10
chore(changelog): change ordering
vmphase Aug 10, 2026
254679c
Merge branch 'master' into fix/channel-issues
vmphase Aug 31, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ These changes are available on the `master` branch, but have not yet been releas

- Added `Member.vr_status` property.
([#3328](https://github.com/Pycord-Development/pycord/pull/3328))
- Added missing `slowmode_delay`, `user_limit`, and `bitrate` parameters to
`StageChannel.edit`. ([#3273](https://github.com/Pycord-Development/pycord/pull/3273))

### Changed

Expand All @@ -24,6 +26,12 @@ These changes are available on the `master` branch, but have not yet been releas
([#3320](https://github.com/Pycord-Development/pycord/pull/3320))
- Fix `SyntaxWarning` about `return` in a `finally` block raised on Python 3.14+
([#3332](https://github.com/Pycord-Development/pycord/pull/3334))
- Fix `StageChannel.create_instance`'s `send_notification` parameter type.
([#3273](https://github.com/Pycord-Development/pycord/pull/3273))
- Fix the `sync_permissions` type in the `VoiceChannel.edit` and `StageChannel.edit`
overloads. ([#3273](https://github.com/Pycord-Development/pycord/pull/3273))
- Fix the return type of the `MediaChannel.edit` overload.
([#3273](https://github.com/Pycord-Development/pycord/pull/3273))

### Deprecated

Expand Down
20 changes: 13 additions & 7 deletions discord/channel.py
Original file line number Diff line number Diff line change
Expand Up @@ -671,7 +671,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.
Expand Down Expand Up @@ -1504,7 +1504,10 @@ async def edit(
require_tag: bool = ...,
hide_media_download_options: bool = ...,
overwrites: Mapping[Role | Member | Snowflake, PermissionOverwrite] = ...,
) -> ForumChannel | None: ...
) -> MediaChannel | None: ...

@overload
async def edit(self) -> MediaChannel | None: ...

async def edit(self, *, reason=None, **options):
"""|coro|
Expand Down Expand Up @@ -2088,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 = ...,
Expand Down Expand Up @@ -2691,7 +2694,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|

Expand Down Expand Up @@ -2775,11 +2778,14 @@ 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 = ...,
video_quality_mode: VideoQualityMode = ...,
bitrate: int = ...,
user_limit: int = ...,
slowmode_delay: int = ...,
reason: str | None = ...,
) -> StageChannel | None: ...

Expand Down Expand Up @@ -2828,7 +2834,7 @@ async def edit(self, *, reason=None, **options):
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.
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.
Expand Down Expand Up @@ -3534,7 +3540,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.
Expand Down