Answer the question
In order to leave comments, you need to log in
How to make a command with multiple mentions of users?
I'm making a fan team.
@pybot.command()
async def kill(ctx, member: discord.Member = None):
await ctx.message.delete()
load1=discord.Embed(title="Тебя убили", description = f"{ctx.author.mention} заебашил {member.mention}", color=2358184)
load1.set_author(name = pybot.user.name, icon_url = cap.avatar_url)
load1.set_image(url = "gif")
await ctx.channel.send(embed = load1)
Answer the question
In order to leave comments, you need to log in
Try changing your function like this:
async def kill(ctx, *member: discord.Member = None):
#Часть кода...
for user in member:
load1=discord.Embed(title="Тебя убили", description = f"{ctx.author.mention} заебашил {user.mention}", color=2358184)
load1.set_author(name = pybot.user.name, icon_url = cap.avatar_url)
load1.set_image(url = "gif")
await ctx.channel.send(embed = load1)
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question