【发布时间】:2021-01-07 13:24:48
【问题描述】:
所以我想对嵌入进行分页,以便它可以在对表情符号做出反应时发生变化代码(文档没有示例或说可以嵌入图片,任何帮助将不胜感激):
@bot.command()
async def paginate(ctx):
embeds = [
Embed(title="test page 1", description="This is just some test content!", color=0x115599),
Embed(title="test page 2", description="Nothing interesting here.", color=0x5599ff),
Embed(title="test page 3", description="Why are you still here?", color=0x191638)
]
paginator = BotEmbedPaginator(ctx, embeds)
await paginator.run()
我也尝试过使用 embed.set_image 但我收到错误positional argument follows keyword argument (<unknown>, line 12)(它突出显示了 embed.set_image)
【问题讨论】:
-
您使用
embed.set_image的具体情况如何?
标签: python pagination discord bots discord.py-rewrite