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:
@ -177,6 +177,10 @@ class Template:
|
||||
.. versionchanged:: 2.0
|
||||
The ``region`` parameter has been removed.
|
||||
|
||||
.. versionchanged:: 2.0
|
||||
This function no-longer raises ``InvalidArgument`` instead raising
|
||||
:exc:`ValueError`.
|
||||
|
||||
Parameters
|
||||
----------
|
||||
name: :class:`str`
|
||||
@ -189,7 +193,7 @@ class Template:
|
||||
------
|
||||
HTTPException
|
||||
Guild creation failed.
|
||||
InvalidArgument
|
||||
ValueError
|
||||
Invalid icon image format given. Must be PNG or JPG.
|
||||
|
||||
Returns
|
||||
|
Reference in New Issue
Block a user