【问题标题】:How to check a reaction of a message如何检查消息的反应
【发布时间】:2021-06-28 14:00:56
【问题描述】:

我正在尝试使用我的机器人执行一些命令,例如反应角色和帮助命令

它是这样的:

@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)

那么我该怎么做呢?

【问题讨论】:

  • 这对您有帮助吗? Pagination - Discord.py rewrite
  • @Dominik 所以不和谐的实用工具应该导入它?
  • import DiscordUtils as DiscordUtils 是导入
  • 那个别名的目的是什么?只需import DiscordUtils

标签: python python-3.x discord.py


【解决方案1】:

试试Discord Pretty Help,它是为你想要的目的而制作的!

【讨论】:

    猜你喜欢
    • 2021-04-23
    • 2023-02-02
    • 2021-04-15
    • 1970-01-01
    • 1970-01-01
    • 2020-12-03
    • 2021-06-09
    • 1970-01-01
    • 2021-07-08
    相关资源
    最近更新 更多