[英]How to reply to a reference in discord python?
在on_message
事件上,您可以捕获引用的消息。
TARGET_USER = 000000000000000000
@bot.event
async def on_message(message):
if message.author.id == TARGET_USER and message.reference:
# assuming you have message cache enabled
msg_ref = message.reference.cached_message
await msg_ref.reply("Hello")
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.