diff options
| author | Hornwitser <[email protected]> | 2018-08-24 19:13:18 +0200 |
|---|---|---|
| committer | Rapptz <[email protected]> | 2018-08-28 23:50:52 -0400 |
| commit | cd218fa6a702a89413f7e211f78ea6691fd8b99b (patch) | |
| tree | fe575da6d2adf0c92f44328ed713db8e16001f44 | |
| parent | Fix behavior of reaction type-conversion (diff) | |
| download | discord.py-cd218fa6a702a89413f7e211f78ea6691fd8b99b.tar.xz discord.py-cd218fa6a702a89413f7e211f78ea6691fd8b99b.zip | |
Remove Reaction.users "Python 3.4 usage" section
Remove nonsensical "Python 3.4" usage section from Reaction.users().
Left behind from f25091ef.
| -rw-r--r-- | discord/reaction.py | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/discord/reaction.py b/discord/reaction.py index 911cd083..9575678e 100644 --- a/discord/reaction.py +++ b/discord/reaction.py @@ -129,17 +129,6 @@ class Reaction: winner = random.choice(users) await channel.send('{} has won the raffle.'.format(winner)) - Python 3.4 Usage :: - - iterator = reaction.users() - while True: - try: - user = await iterator.next() - except discord.NoMoreItems: - break - else: - await channel.send('{0} has reacted with {1.emoji}!'.format(user, reaction)) - Yields -------- Union[:class:`User`, :class:`Member`] |