Skip to content

Commit

Permalink
'Refactored by Sourcery'
Browse files Browse the repository at this point in the history
  • Loading branch information
Sourcery AI committed Sep 24, 2023
1 parent 7041cb5 commit b0a5e2f
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions battleroyale/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -465,9 +465,7 @@ async def role(
).set_thumbnail(url=SWORDS)
)
return
users: List[discord.Member] = []
for member in role.members:
users.append(member)
users: List[discord.Member] = list(role.members)
players: List[discord.Member] = list(filter(lambda u: not u.bot, users))
if ctx.author not in players:
players.append(ctx.author)
Expand Down

0 comments on commit b0a5e2f

Please sign in to comment.