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
@@ -148,6 +148,10 @@ class Reaction:
.. versionadded:: 1.3
.. versionchanged:: 2.0
This function no-longer raises ``InvalidArgument`` instead raising
:exc:`ValueError`.
Raises
--------
HTTPException
@@ -156,7 +160,7 @@ class Reaction:
You do not have the proper permissions to clear the reaction.
NotFound
The emoji you specified was not found.
InvalidArgument
TypeError
The emoji parameter is invalid.
"""
await self.message.clear_reaction(self.emoji)