如何嵌入会员的形象和昵称? (带有discord.py) [英] How do I put a member's image and nick on embed? (w/ discord.py)
本文介绍了如何嵌入会员的形象和昵称? (带有discord.py)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我想在嵌入中放置执行命令的人的化身和昵称,如下所示:
I want to put the avatar and nick of the person who ran a command in the embed, something like this:
requested by:
(avatar) (nick)
但我不知道如何开始....
but I do not know how to start....
推荐答案
我用了这个:
embed.set_thumbnail(url=message.author.avatar_url)
embed.set_footer(text='ㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤRequested by: ' + message.author.name)
这篇关于如何嵌入会员的形象和昵称? (带有discord.py)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文