Skip to content

Commit

Permalink
feat: implement text in stage (#942)
Browse files Browse the repository at this point in the history
Signed-off-by: arl <[email protected]>
Co-authored-by: shiftinv <[email protected]>
  • Loading branch information
onerandomusername and shiftinv authored Feb 26, 2023
1 parent 73f08a7 commit e7db034
Show file tree
Hide file tree
Showing 15 changed files with 493 additions and 39 deletions.
1 change: 1 addition & 0 deletions changelog/942.bugfix.0.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Fix :meth:`.VoiceChannel.permissions_for` not disabling :attr:`Permissions.manage_webhooks` when the user cannot connect to the channel.
9 changes: 9 additions & 0 deletions changelog/942.feature.0.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
Messages can now be sent within :class:`StageChannel` instances.
- :class:`StageChannel` now inherits from :class:`abc.Messageable`
- New :class:`StageChannel` properties:
:attr:`.nsfw <StageChannel.nsfw>`, :attr:`.slowmode_delay <StageChannel.slowmode_delay>`, :attr:`.last_message_id <StageChannel.last_message_id>`, :attr:`.last_message <StageChannel.last_message>`
- New :class:`StageChannel` methods:
:func:`.is_nsfw <StageChannel.is_nsfw>`, :func:`.get_partial_message <StageChannel.get_partial_message>`, :func:`.delete_messages <StageChannel.delete_messages>`, :func:`.purge <StageChannel.purge>`, :func:`.webhooks <StageChannel.webhooks>`, :func:`.create_webhook <StageChannel.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`.
2 changes: 2 additions & 0 deletions changelog/942.feature.1.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
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`.
1 change: 1 addition & 0 deletions changelog/942.feature.2.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Add edit support for ``user_limit`` to :meth:`StageChannel.edit`.
1 change: 1 addition & 0 deletions changelog/942.feature.3.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Add support for setting ``user_limit`` and ``video_quality_mode`` when creating a :class:`StageChannel` with :func:`Guild.create_stage_channel`.
3 changes: 2 additions & 1 deletion disnake/abc.py
Original file line number Diff line number Diff line change
Expand Up @@ -1331,9 +1331,10 @@ class Messageable:
- :class:`~disnake.GroupChannel`
- :class:`~disnake.User`
- :class:`~disnake.Member`
- :class:`~disnake.ext.commands.Context`
- :class:`~disnake.Thread`
- :class:`~disnake.VoiceChannel`
- :class:`~disnake.StageChannel`
- :class:`~disnake.ext.commands.Context`
- :class:`~disnake.PartialMessageable`
"""

Expand Down
Loading

0 comments on commit e7db034

Please sign in to comment.