@client.command()
async def shift(ctx):
embed=discord.Embed(title="ER:LC Server Shift", description="server name shift Please go onto your staff team and assist people.", inline=False)
await ctx.channel.send {message.author.mention}
await ctx.send(embed=embed)
您在await ctx.channel.send
行缺少( )
。如果您想提及作者并将其作为消息发送,则需要在该行中使用括号{ }
,因为( )
中的message.author.mention
是f字符串。
@client.command()
async def shift(ctx):
embed=discord.Embed(title="ER:LC Server Shift", description="server name shift Please go onto your staff team and assist people.", inline=False)
await ctx.channel.send(f"{message.author.mention}")
await ctx.send(embed=embed)