python - 如何检查消息的反应
问题描述
我试图用我的机器人做一些命令,比如反应角色和帮助命令
它是这样的:
@bot.command()
async def help(ctx):
em = discord.Embed(title="HELP",#etc
#here is all about my help command
my_msg = await ctx.send(embed=em)
my_msg.add_reaction("#arrow-emoji)
my_msg.add_reaction(#more arrow emoji
#...
if #ctx.author react it:
my_msg.edit(#page n)
那么我该怎么做呢?
解决方案
试试Discord Pretty Help,它是为你想要的目的而制作的!
推荐阅读
- powerbi - 在 Power BI 上使用 DAX 创建自定义指标
- blockchain - Geth或Ganache的区别
- python-3.x - 是否有一个模块可以计算 Python 中字符串列表的出现次数?
- python-3.x - Python/云函数异步 POST 请求
- java - 在 Android Java 中键入时自动为 Edittext 中的 Hashtags 着色
- spring - 保存功能上的 EntityNotFoundException
- mysql - 从没有唯一列的重复行中获取第一行
- r - 如何在 R 中 ggplot2 的条形图中绘制多个变量(即类别)
- wordpress - 自定义 WooCommerce 网关 - 运行本地 JS 功能
- postgresql - 使用 PetaPoco 从 PostgreSQL 返回记录 ID