简体   繁体   English

我可以提及带有 ID 的消息吗

[英]Can I mention a message with its ID

I have a Discord-Bot (I'm developing with Discord.py) with a report command and the user should pass the ID of the corresponding message (I will don't know in which channel).我有一个带有报告命令的 Discord-Bot(我正在使用 Discord.py 开发),用户应该传递相应消息的 ID(我不知道在哪个频道)。 How can I mention the message with this ID?我如何提及带有此 ID 的消息?

I tried <@ID>, but it mentions an unknown user and <#ID>, but it mentions a deleted channel.我尝试了 <@ID>,但它提到了一个未知用户和 <#ID>,但它提到了一个已删除的频道。

I'm not sure if you can mention a message but you can give a link which can be clicked and will send you to the message.我不确定您是否可以提及一条消息,但您可以提供一个链接,您可以点击该链接并将您发送至该消息。

The format of the link should be:链接的格式应该是:

https://discord.com/channels/<GUILD-ID>/<CHANNEL-ID>/<MESSAGE-ID>

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM