how do i fix a command that is supposed to spam a message on a discord server?

You defined member argument that you need to specify on command’s call (!spam <member>)

If you want to get user that issued command (author of message), you need to get it from context (ctx):

@commands.has_any_role(...)
@bot.command()
async def spam(ctx):
    for _ in range(20):
        await ctx.send(f"{ctx.author.mention} why do you do this to me. IT BURNS")

CLICK HERE to find out more related problems solutions.

Leave a Comment

Your email address will not be published.

Scroll to Top