Skip to content

Commit 83d5da0

Browse files
committed
fix: unset bypass_slowmode in Permissions.private_channel()
1 parent 225dce8 commit 83d5da0

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

disnake/permissions.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -542,11 +542,12 @@ def private_channel(cls) -> Self:
542542
This is equivalent to :meth:`Permissions.text` with :attr:`~Permissions.view_channel` with the following set to False:
543543
544544
- :attr:`~Permissions.send_tts_messages`: You cannot send TTS messages in a DM.
545-
- :attr:`~Permissions.manage_messages`: You cannot delete others messages in a DM.
545+
- :attr:`~Permissions.manage_messages`: You cannot delete others' messages in a DM.
546546
- :attr:`~Permissions.manage_threads`: You cannot manage threads in a DM.
547547
- :attr:`~Permissions.send_messages_in_threads`: You cannot make threads in a DM.
548548
- :attr:`~Permissions.create_public_threads`: You cannot make public threads in a DM.
549549
- :attr:`~Permissions.create_private_threads`: You cannot make private threads in a DM.
550+
- :attr:`~Permissions.bypass_slowmode`: You cannot enable slowmode in a DM.
550551
551552
.. versionadded:: 2.4
552553
"""
@@ -558,6 +559,7 @@ def private_channel(cls) -> Self:
558559
base.send_messages_in_threads = False
559560
base.create_public_threads = False
560561
base.create_private_threads = False
562+
base.bypass_slowmode = False
561563
return base
562564

563565
@overload

0 commit comments

Comments
 (0)