aboutsummaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorSteven Berler <[email protected]>2015-12-12 13:21:44 -0800
committerRapptz <[email protected]>2015-12-13 13:01:05 -0500
commit037da750dd700fa3df6147e76d9f1344f6620a48 (patch)
treec38393a68fa2f9b3d3d41b086eaf8ef13a137fcc /examples
parentRemove uses of ClientSession. (diff)
downloaddiscord.py-037da750dd700fa3df6147e76d9f1344f6620a48.tar.xz
discord.py-037da750dd700fa3df6147e76d9f1344f6620a48.zip
avoid potential bug when creating new private msgs
It probably isn't good to rely on an item that was added to a list to still be the last item, especially if we could have other async coroutines modify the list. This may not be an actual issue, but having the function explicitly return the object that it just added to the list should guarantee that we don't accidentally pull the wrong item from the end of the list later.
Diffstat (limited to 'examples')
0 files changed, 0 insertions, 0 deletions