2024-04-20 14:24:34 发布
网友
我的bot使用discord.py,是否有方法对其进行编码,以允许它通过命令自动跟踪其他服务器到您的服务器的公告频道
我不确定这是否是您的要求,但您可以通过执行message.type == discord.MessageType.channel_follow_add来检查一条消息是否是某个频道正在跟踪另一个频道的消息
message.type == discord.MessageType.channel_follow_add
以下是一些有用的链接:
on_message event
MessageType.channel_follow_add
如果这是你的意思的话,你不能用机器人跟踪频道
我不确定这是否是您的要求,但您可以通过执行
message.type == discord.MessageType.channel_follow_add
来检查一条消息是否是某个频道正在跟踪另一个频道的消息以下是一些有用的链接:
on_message event
MessageType.channel_follow_add
如果这是你的意思的话,你不能用机器人跟踪频道
相关问题 更多 >
编程相关推荐