@@ -242,6 +242,8 @@ class MessageableMixin(SendMixin):
242
242
repr = False , default = None , converter = optional_c (timestamp_converter )
243
243
)
244
244
"""When the last pinned message was pinned. This may be None when a message is not pinned."""
245
+ rate_limit_per_user : int = attrs .field (repr = False , default = 0 )
246
+ """Amount of seconds a user has to wait before sending another message (0-21600)"""
245
247
246
248
async def _send_http_request (
247
249
self , message_payload : Union [dict , "FormData" ], files : list ["UPLOADABLE_TYPE" ] | None = None
@@ -1693,8 +1695,6 @@ async def create_thread_from_message(
1693
1695
class GuildText (GuildChannel , MessageableMixin , InvitableMixin , ThreadableMixin , WebhookMixin ):
1694
1696
topic : Optional [str ] = attrs .field (repr = False , default = None )
1695
1697
"""The channel topic (0-1024 characters)"""
1696
- rate_limit_per_user : int = attrs .field (repr = False , default = 0 )
1697
- """Amount of seconds a user has to wait before sending another message (0-21600)"""
1698
1698
1699
1699
async def edit (
1700
1700
self ,
@@ -2396,6 +2396,8 @@ class GuildForum(GuildChannel):
2396
2396
"""The default emoji to react with for posts"""
2397
2397
last_message_id : Optional [Snowflake_Type ] = attrs .field (repr = False , default = None )
2398
2398
# TODO: Implement "template" once the API supports them
2399
+ rate_limit_per_user : int = attrs .field (repr = False , default = 0 )
2400
+ """Amount of seconds a user has to wait before sending another message (0-21600)"""
2399
2401
default_sort_order : Optional [ForumSortOrder ] = attrs .field (
2400
2402
repr = False , default = None , converter = ForumSortOrder .converter
2401
2403
)
0 commit comments