mirror of
https://github.com/Rapptz/discord.py.git
synced 2025-09-04 08:56:19 +00:00
Change snowflake_time and time_snowflake parameters to pos/kw-only
This commit is contained in:
@ -1038,19 +1038,22 @@ Parameters in the following methods are now all positional-only:
|
||||
- :meth:`TextChannel.get_partial_message`
|
||||
- :meth:`TextChannel.delete_messages`
|
||||
- :meth:`Webhook.delete_message`
|
||||
- :meth:`utils.find`
|
||||
- :func:`utils.find`
|
||||
- :func:`utils.snowflake_time`
|
||||
|
||||
The following parameters are now positional-only:
|
||||
|
||||
- ``iterable`` in :meth:`utils.get`
|
||||
- ``iterable`` in :func:`utils.get`
|
||||
- ``event_method`` in :meth:`Client.on_error`
|
||||
- ``event`` in :meth:`Client.wait_for`
|
||||
- ``dt`` in :func:`utils.time_snowflake`
|
||||
|
||||
The following are now keyword-only:
|
||||
|
||||
- Parameters in :meth:`Reaction.users`
|
||||
- Parameters in :meth:`Client.create_guild`
|
||||
- ``permissions``, ``guild``, ``redirect_uri``, and ``scopes`` parameters in :meth:`utils.oauth_url`
|
||||
- ``permissions``, ``guild``, ``redirect_uri``, and ``scopes`` parameters in :func:`utils.oauth_url`
|
||||
- ``high`` in :func:`utils.snowflake_time`
|
||||
|
||||
The library now less often uses ``None`` as the default value for function/method parameters.
|
||||
|
||||
|
Reference in New Issue
Block a user