diff --git a/CHANGELOG.md b/CHANGELOG.md index 6d407f3758..a84d96b541 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -16,6 +16,8 @@ These changes are available on the `master` branch, but have not yet been releas ([#3328](https://github.com/Pycord-Development/pycord/pull/3328)) - Added `SlashCommandGroup.add_command`. ([#3346](https://github.com/Pycord-Development/pycord/pull/3346)) +- Added missing `slowmode_delay`, `user_limit`, and `bitrate` parameters to + `StageChannel.edit`. ([#3273](https://github.com/Pycord-Development/pycord/pull/3273)) ### Changed @@ -26,6 +28,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 diff --git a/discord/channel.py b/discord/channel.py index dab70c4a92..b07d935090 100644 --- a/discord/channel.py +++ b/discord/channel.py @@ -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. @@ -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| @@ -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 = ..., @@ -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| @@ -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: ... @@ -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. @@ -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.