Skip to content

Commit a0c445c

Browse files
authored
docs: fix missing colon, attempt to fix the code-block in channel.purge (#759)
* Update channel.py * Update channel.py
1 parent f4b7bae commit a0c445c

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

interactions/api/models/channel.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -315,7 +315,7 @@ async def modify(
315315
:param topic?: The topic of that channel, defaults to the current value of the channel
316316
:type topic: Optional[str]
317317
:param bitrate?: (voice channel only) The bitrate (in bits) of the voice channel, defaults to the current value of the channel
318-
:type bitrate Optional[int]
318+
:type bitrate: Optional[int]
319319
:param user_limit?: (voice channel only) Maximum amount of users in the channel, defaults to the current value of the channel
320320
:type user_limit: Optional[int]
321321
:param rate_limit_per_use?: Amount of seconds a user has to wait before sending another message (0-21600), defaults to the current value of the channel
@@ -725,9 +725,11 @@ async def purge(
725725
.. warning:: Calling this method can lead to rate-limits when purging higher amounts of messages.
726726
727727
.. code-block:: python
728+
728729
def check_pinned(message):
729730
return not message.pinned # This returns `True` only if the message is the message is not pinned
730731
await channel.purge(100, check=check_pinned) # This will delete the newest 100 messages that are not pinned in that channel
732+
731733
:param amount: The amount of messages to delete
732734
:type amount: int
733735
:param check?: The function used to check if a message should be deleted. The message is only deleted if the check returns `True`

0 commit comments

Comments
 (0)