@Zakkaru

Как достать member из ctx.message.reference:?

Вроде бы в {ctx.message.mentions[0].tag} пишется незнаю, помогите
if ctx.message.reference:
          image = random.choice(["https://media.giphy.com/media/143v0Z4767T15e/giphy.gif","https://media.giphy.com/media/PHZ7v9tfQu0o0/giphy.gif","https://media.giphy.com/media/GMFUrC8E8aWoo/giphy.gif","https://media.giphy.com/media/svXXBgduBsJ1u/giphy.gif","https://media.giphy.com/media/IRUb7GTCaPU8E/giphy.gif","https://media.giphy.com/media/qscdhWs5o3yb6/giphy.gif","https://media.giphy.com/media/lrr9rHuoJOE0w/giphy.gif","https://media.giphy.com/media/LIqFOpO9Qh0uA/giphy.gif","https://media.giphy.com/media/sUIZWMnfd4Mb6/giphy.gif","https://media.giphy.com/media/3bqtLDeiDtwhq/giphy.gif","https://media.giphy.com/media/3ZnBrkqoaI2hq/giphy.gif","https://media.giphy.com/media/ZQN9jsRWp1M76/giphy.gif"])
          embed = discord.Embed(title= '**Обнимашки** ❤️' ,description =f'{ctx.message.author.mention} **крепко обнял(а)** {ctx.message.mentions[0].tag} ',
          color=discord.Colour.from_rgb(138, 43, 226),timestamp=ctx.message.created_at)
          embed.set_footer(text=f"\n\n{ctx.author.name} " ,icon_url=ctx.author.avatar_url)
          embed.set_image(url=image)
          await ctx.send(embed=embed)
  • Вопрос задан
  • 59 просмотров
Пригласить эксперта
Ваш ответ на вопрос

Войдите, чтобы написать ответ

Войти через центр авторизации
Похожие вопросы