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