mirror of
https://github.com/Rapptz/discord.py.git
synced 2025-10-24 01:53:01 +00:00
Add positional-only arguments in more places
This commit is contained in:
@@ -1422,7 +1422,7 @@ class Webhook(BaseWebhook):
|
||||
|
||||
return msg
|
||||
|
||||
async def fetch_message(self, id: int) -> WebhookMessage:
|
||||
async def fetch_message(self, id: int, /) -> WebhookMessage:
|
||||
"""|coro|
|
||||
|
||||
Retrieves a single :class:`~discord.WebhookMessage` owned by this webhook.
|
||||
@@ -1583,6 +1583,10 @@ class Webhook(BaseWebhook):
|
||||
|
||||
.. versionadded:: 1.6
|
||||
|
||||
.. versionchanged:: 2.0
|
||||
|
||||
``message_id`` parameter is now positional-only.
|
||||
|
||||
Parameters
|
||||
------------
|
||||
message_id: :class:`int`
|
||||
|
||||
Reference in New Issue
Block a user