Skip to content
Discussion options

You must be logged in to vote

@eternalyoshino you guessed right! You just need to remove * from the function (award)

@commands.command()
@commands.has_permissions(administrator=True)
async def award(self, ctx, amount: int = None, member: commands.Greedy[discord.Member]):
    for members in member:
        open_account(user=members)
        add_bal(members, amount)
        await ctx.send (f"{members.mention}, you have been credited {amount} bits\nAccrued: {ctx.author.mention}")

When running the command like award 100 @user1 @user2, the bot tries to convert both @user1 and @user2 as 1 single Member. Hence, there is no user ("@user1 @user2") like it and therefore member is []

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
1 reply
@eternalyoshino
Comment options

Answer selected by eternalyoshino
Comment options

You must be logged in to vote
1 reply
@trevorflahardy
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants