File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -526,6 +526,7 @@ async def edit(
526
526
invitable : bool = MISSING ,
527
527
slowmode_delay : int = MISSING ,
528
528
auto_archive_duration : ThreadArchiveDuration = MISSING ,
529
+ reason : Optional [str ] = None
529
530
) -> Thread :
530
531
"""|coro|
531
532
@@ -555,6 +556,8 @@ async def edit(
555
556
slowmode_delay: :class:`int`
556
557
Specifies the slowmode rate limit for user in this thread, in seconds.
557
558
A value of ``0`` disables slowmode. The maximum value possible is ``21600``.
559
+ reason: Optional[:class:`str`]
560
+ The reason for editing this thread. Shows up on the audit log.
558
561
559
562
Raises
560
563
-------
@@ -582,7 +585,7 @@ async def edit(
582
585
if slowmode_delay is not MISSING :
583
586
payload ['rate_limit_per_user' ] = slowmode_delay
584
587
585
- data = await self ._state .http .edit_channel (self .id , ** payload )
588
+ data = await self ._state .http .edit_channel (self .id , ** payload , reason = reason )
586
589
# The data payload will always be a Thread payload
587
590
return Thread (data = data , state = self ._state , guild = self .guild ) # type: ignore
588
591
You can’t perform that action at this time.
0 commit comments