mirror of
https://github.com/Rapptz/discord.py.git
synced 2025-09-07 10:22:59 +00:00
Remove discord.InvalidArgument
This uses TypeError and ValueError instead.
This commit is contained in:
@ -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.
|
||||
"""
|
||||
|
||||
|
Reference in New Issue
Block a user