Remove discord.InvalidArgument

This uses TypeError and ValueError instead.
This commit is contained in:
Josh
2022-02-26 16:44:49 +10:00
committed by GitHub
parent 86797dd9ab
commit 2b69b5d545
22 changed files with 342 additions and 176 deletions

View File

@ -495,6 +495,10 @@ class AutoShardedClient(Client):
.. versionchanged:: 2.0
Removed the ``afk`` keyword-only parameter.
.. versionchanged:: 2.0
This function no-longer raises ``InvalidArgument`` instead raising
:exc:`TypeError`.
Parameters
----------
activity: Optional[:class:`BaseActivity`]
@ -509,7 +513,7 @@ class AutoShardedClient(Client):
Raises
------
InvalidArgument
TypeError
If the ``activity`` parameter is not of proper type.
"""