Z
Z
Zakkaru2021-07-13 15:49:34
Python
Zakkaru, 2021-07-13 15:49:34

How to mention tagged user in embed?

@client.command()
async def kiss(ctx):
    author = ctx.message.author
    image = random.choice(["https://c.tenor.com/0mdCwkmGD1oAAAAM/kiss-love.gif", "https://c.tenor.com/_403I8S5wtcAAAAM/hungover.gif", "https://c.tenor.com/bkF2kFvXR50AAAAM/yes-love.gif"])
    embed = discord.Embed(title = 'Поцелуйчики', description =f'{ctx.message.author.mention} поцеловал/ла {ctx.member.mention}',color=discord.Colour.from_rgb(255, 255, 0))
    embed.set_image(url=image)
    await ctx.send(embed=embed)

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
soremix, 2021-07-13
@Zakkaru

async def kiss(ctx, member: discord.Member):,
then

f'{ctx.message.author.mention} поцеловал/ла {member.mention}'

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question