aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorGravatar Manuel Ignacio Pérez Alcolea <[email protected]>2019-12-22 17:27:42 -0300
committerGravatar Manuel Ignacio Pérez Alcolea <[email protected]>2019-12-22 17:27:42 -0300
commite30cedc63e06ea136947934e579824f9e3b744bf (patch)
tree07777673d3b178a57cf568c4c2ec4452712c539f /tests
parentMake `watchchannels` use `FetchedUser` instead of `proxy_user` (diff)
Catch HTTPException in fetching, only fetch if isn't User or Member
There's now a check to see if the `user` argument (possibly a `discord.Object`) needs to be made a `User`, instead of doing so directly, to avoid unnecessary requests to the Discord API. Besides that, a possible HTTPException is catched if it the fetch fails, cancelling the message to be send to the user (which would make the following calls fail later on for not being of the proper type.)
Diffstat (limited to 'tests')
0 files changed, 0 insertions, 0 deletions