Browse Source

Remove Reaction.users "Python 3.4 usage" section

Remove nonsensical "Python 3.4" usage section from Reaction.users().
Left behind from f25091ef.
pull/1546/merge
Hornwitser 7 years ago
committed by Rapptz
parent
commit
cd218fa6a7
  1. 11
      discord/reaction.py

11
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`]

Loading…
Cancel
Save