@@ -957,7 +957,7 @@ def get_member(self, id) -> Optional[ThreadMember]:
957
957
""":class:`ThreadMember`: Returns the thread member with the given ID, or :obj:`None` if he is not a member of the thread."""
958
958
return self ._members .get (id , None )
959
959
960
- def permissions_for (self , member ) -> Permissions :
960
+ def permissions_for (self , member : Member ) -> Permissions :
961
961
"""Handles permission resolution for the current :class:`~discord.Member`.
962
962
963
963
.. note::
@@ -1236,12 +1236,12 @@ async def edit(
1236
1236
----------
1237
1237
name: Optional[:class:`str`]
1238
1238
The channel name. Must be 1-100 characters long
1239
- archived: Optional[:class:`bool`]
1240
- Whether the thread is archived
1241
1239
auto_archive_duration: Optional[:class:`AutoArchiveDuration`]
1242
1240
Duration in minutes to automatically archive the thread after recent activity
1241
+ archived: Optional[:class:`bool`]
1242
+ Whether the thread is archived
1243
1243
locked: Optional[:class:`bool`]
1244
- Whether the thread is locked; when a thread is locked, only users with :attr:`Permissions.manage_threads` can unarchive it
1244
+ Whether the thread is locked; when a thread is locked, only users with :attr:`Permissions.manage_threads` can unlock it
1245
1245
invitable: Optional[:class:`bool`]
1246
1246
Whether non-moderators can add other non-moderators to a thread; only available on private threads
1247
1247
slowmode_delay: :Optional[:class:`int`]
@@ -2319,6 +2319,7 @@ async def edit(
2319
2319
tags : Sequence [ForumTag ] = MISSING ,
2320
2320
pinned : bool = MISSING ,
2321
2321
auto_archive_duration : AutoArchiveDuration = MISSING ,
2322
+ archived : bool = MISSING ,
2322
2323
locked : bool = MISSING ,
2323
2324
slowmode_delay : int = MISSING ,
2324
2325
reason : Optional [str ] = None
@@ -2345,7 +2346,9 @@ async def edit(
2345
2346
after ``auto_archive_duration`` minutes of inactivity.
2346
2347
locked: :class:`bool`
2347
2348
Whether the post is locked;
2348
- when a post is locked, only users with :func:~Permissions.manage_threads` permissions can unarchive it
2349
+ when a post is locked, only users with :func:~Permissions.manage_threads` permissions can unlock it
2350
+ archived: :class:`bool`
2351
+ Whether the post is archived.
2349
2352
slowmode_delay: Optional[:class:`str`]
2350
2353
Amount of seconds a user has to wait before sending another message (0-21600);
2351
2354
bots, as well as users with the permission manage_messages, manage_thread, or manage_channel, are unaffected
@@ -2371,7 +2374,10 @@ async def edit(
2371
2374
raise InvalidArgument ('%s is not a valid auto_archive_duration' % auto_archive_duration )
2372
2375
else :
2373
2376
payload ['auto_archive_duration' ] = auto_archive_duration .value
2374
-
2377
+
2378
+ if archived is not MISSING :
2379
+ payload ['archived' ] = archived
2380
+
2375
2381
if locked is not MISSING :
2376
2382
payload ['locked' ] = locked
2377
2383
0 commit comments