【发布时间】:2021-03-21 11:52:15
【问题描述】:
我正在创建一个 Rainbow Embed 命令,但我真的不知道它应该如何工作。也许您可以查看并帮助我创建命令:D
这里是代码
@bot.commands()
async def rainbowembed(ctx, *, message):
embed = discordEmbed(description=message)
ctx.send(embed=embed)
for i in range(5):
# On this point i dont know what to do...
# I want to switch the color of the embed in this format
# 0x3755ff, 0x13ff00, 0xff7400
# and i want to repeat it 5 times, so it goes 5 times trough this Colors...
【问题讨论】:
-
您是否收到任何错误消息?
-
首先,在 embed 变量中,您还必须传入标题,所以它不会是:
embed = discordEmbed(description=message)而是:embed = discordEmbed(title=title, description=message) -
不,我不需要这样做 title=
-
好的,但是您是否收到任何错误消息,或者它只是没有做任何事情
标签: python discord.py