Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
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
10 changes: 10 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@ 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 `RoleColours.HOLOGRAPHIC_PRIMARY`, `RoleColours.HOLOGRAPHIC_SECONDARY`, and
- Add `RoleColours.HOLOGRAPHIC_PRIMARY`, `RoleColours.HOLOGRAPHIC_SECONDARY`, and
`RoleColours.HOLOGRAPHIC_TERTIARY` class constants.
([#3268](https://github.com/Pycord-Development/pycord/pull/3268))
Expand All @@ -20,6 +23,13 @@ These changes are available on the `master` branch, but have not yet been releas

### 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))
- Fixed an `AttributeError` when using `RoleColours.is_holographic` and `secondary` or
- Fix an attribute error in `RoleColours.is_holographic()` when `secondary` or
`tertiary` is `None`.
([#3268](https://github.com/Pycord-Development/pycord/pull/3268))
Expand Down
20 changes: 13 additions & 7 deletions discord/channel.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down Expand Up @@ -1507,7 +1507,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 @@ -2091,7 +2094,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 @@ -2694,7 +2697,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 @@ -2778,11 +2781,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 @@ -2831,7 +2837,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 @@ -3537,7 +3543,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
Loading