Remove discord.InvalidArgument

This uses TypeError and ValueError instead.
This commit is contained in:
Josh authored and GitHub committed 2022-02-26 01:44:49 -05:00
1 parent 86797dd9ab
commit 2b69b5d545
22 files changed
+342 -176

No files matched your search

+5 -1
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.
"""