Change snowflake_time and time_snowflake parameters to pos/kw-only

This commit is contained in:
Rapptz
2022-08-15 13:39:03 -04:00
parent 668196c14c
commit 5b56899676
2 changed files with 18 additions and 7 deletions

View File

@ -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.