Implementing GET '/channels/:id' & '/guilds/:id/channels'

Signed-off-by: NCPlayz <chowdhurynadir0@outlook.com>
This commit is contained in:
NCPlayz
2019-05-18 22:29:22 +01:00
committed by Rapptz
parent 320dbc0618
commit f7c6c5995d
4 changed files with 94 additions and 0 deletions

View File

@ -125,6 +125,12 @@ class NotFound(HTTPException):
pass
class InvalidData(ClientException):
"""Exception that's raised when the library encounters unknown
or invalid data from Discord.
"""
pass
class InvalidArgument(ClientException):
"""Exception that's thrown when an argument to a function
is invalid some way (e.g. wrong value or wrong type).