Selecting random user from ctx.guild.members (discordpy)
Solution 1:
The random.choice()
takes a random item out of a list. So if you execute it on a single object, you get that error. In your case, a for
loop is not necessary, just do
winner = random.choice(ctx.guild.members)