def ex(args, message, client, invoke):
author = message.author
if "testrolle" in [y.name.lower() for y in author.roles]:
yield from client.send_message(message.channel, embed=Embed(color=discord.Color.red(), description=(
"**Step 1/2")))
if "557947911418281985" in [y.id for y in author.roles]:
yield from client.send_message(message.channel, embed=Embed(color=discord.Color.red(), description=(
"**Step 2/2")))
这是我的代码。它只写消息“ Step 1/2”。但是我在运行日志中没有错误。 (557947911418281985是角色ID)