【发布时间】: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