Closed japandotorg closed 1 year ago
The docs says here
Changed in version 2.0: This function will now raise ValueError instead of InvalidArgument.
So you should be using ValueError instead of TypeError
It says TypeError
and/or ValueError
shouldn't we be using both if that's the case?
Tho I think using just TypeError
should be enough
The docs says here
Oh i see so Webhook.send
now returns a ValueError
instead of InvalidArgument
Basically fixes this error:
https://discordpy.readthedocs.io/en/stable/migrating.html?highlight=invalidargument#removal-of-invalidargument-exception