@@ -1377,6 +1377,8 @@ class MediaChannel(ForumChannel):
1377
1377
1378
1378
Returns the channel's name.
1379
1379
1380
+ .. versionadded:: 2.7
1381
+
1380
1382
Attributes
1381
1383
----------
1382
1384
name: :class:`str`
@@ -1413,35 +1415,25 @@ class MediaChannel(ForumChannel):
1413
1415
default_auto_archive_duration: :class:`int`
1414
1416
The default auto archive duration in minutes for threads created in this channel.
1415
1417
1416
- .. versionadded:: 2.0
1417
1418
flags: :class:`ChannelFlags`
1418
1419
Extra features of the channel.
1419
1420
1420
- .. versionadded:: 2.0
1421
1421
available_tags: List[:class:`ForumTag`]
1422
1422
The set of tags that can be used in a forum channel.
1423
1423
1424
- .. versionadded:: 2.3
1425
1424
default_sort_order: Optional[:class:`SortOrder`]
1426
1425
The default sort order type used to order posts in this channel.
1427
1426
1428
- .. versionadded:: 2.3
1429
1427
default_thread_slowmode_delay: Optional[:class:`int`]
1430
1428
The initial slowmode delay to set on newly created threads in this channel.
1431
1429
1432
- .. versionadded:: 2.3
1433
1430
default_reaction_emoji: Optional[:class:`str` | :class:`discord.GuildEmoji`]
1434
1431
The default forum reaction emoji.
1435
-
1436
- .. versionadded:: 2.5
1437
1432
"""
1438
1433
1439
1434
@property
1440
- def hides_media_download_options (self ):
1441
- """Whether media download options are be hidden in this media channel.
1442
-
1443
- .. versionadded:: 2.7
1444
- """
1435
+ def hides_media_download_options (self ) -> bool :
1436
+ """Whether media download options are be hidden in this media channel."""
1445
1437
return self .flags .hide_media_download_options
1446
1438
1447
1439
@overload
@@ -1503,30 +1495,23 @@ async def edit(self, *, reason=None, **options):
1503
1495
default_thread_slowmode_delay: :class:`int`
1504
1496
The new default slowmode delay in seconds for threads created in this channel.
1505
1497
1506
- .. versionadded:: 2.3
1507
1498
default_sort_order: Optional[:class:`SortOrder`]
1508
1499
The default sort order type to use to order posts in this channel.
1509
1500
1510
- .. versionadded:: 2.3
1511
1501
default_reaction_emoji: Optional[:class:`discord.GuildEmoji` | :class:`int` | :class:`str`]
1512
1502
The default reaction emoji.
1513
1503
Can be a unicode emoji or a custom emoji in the forms:
1514
1504
:class:`GuildEmoji`, snowflake ID, string representation (eg. '<a:emoji_name:emoji_id>').
1515
1505
1516
- .. versionadded:: 2.5
1517
1506
available_tags: List[:class:`ForumTag`]
1518
1507
The set of tags that can be used in this channel. Must be less than `20`.
1519
1508
1520
- .. versionadded:: 2.3
1521
1509
require_tag: :class:`bool`
1522
1510
Whether a tag should be required to be specified when creating a thread in this channel.
1523
1511
1524
- .. versionadded:: 2.3
1525
1512
hide_media_download_options: :class:`bool`
1526
1513
Whether media download options should be hidden in this media channel.
1527
1514
1528
- .. versionadded:: 2.7
1529
-
1530
1515
Returns
1531
1516
-------
1532
1517
Optional[:class:`.MediaChannel`]
0 commit comments