本文介紹了無法在嵌入消息的標題 discord.py 中標記成員的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學習吧!
問題描述
我的不和諧機器人應該在包含 GIF 的嵌入中標記人.我用下面的代碼來提一下:
My discord bot is suppose to tag people in an embed containing a GIF. I'm using the following code to mention:
embed = discord.Embed(title = f"{member.mention}, I'm sorry...")
但是,我沒有標記成員,而是獲得了 ID:截圖
However, instead of tagging the member, I get the ID instead: Screenshot
推薦答案
你不能在嵌入中提及人.如果您希望對成員進行 ping,則必須在消息之前或之后在普通消息中 ping 他們.
You can't mention people within an embed. If you want the member to be pinged you will have to ping them in a normal message before or after the message.
這篇關于無法在嵌入消息的標題 discord.py 中標記成員的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網!
【網站聲明】本站部分內容來源于互聯網,旨在幫助大家更快的解決問題,如果有圖片或者內容侵犯了您的權益,請聯系我們刪除處理,感謝您的支持!