aboutsummaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorRapptz <[email protected]>2015-11-20 17:39:19 -0500
committerRapptz <[email protected]>2015-11-20 17:39:51 -0500
commit5ca04ea08f3d64d4e2bfb1b86c7a8a01b2480f87 (patch)
tree80501a19e4320067c808ab8d5c3a6ccc824461f8 /examples
parentAllow sending raw file objects in memory with client.send_raw_file (diff)
downloaddiscord.py-5ca04ea08f3d64d4e2bfb1b86c7a8a01b2480f87.tar.xz
discord.py-5ca04ea08f3d64d4e2bfb1b86c7a8a01b2480f87.zip
Use try-except instead of checking for membership.
Basically, a lot of the checks revolving "if x in y" could be written more efficiently by doing the task anyway and ignoring the exception a la the EAFP guideline.
Diffstat (limited to 'examples')
0 files changed, 0 insertions, 0 deletions