【发布时间】:2021-05-11 14:15:56
【问题描述】:
我有错误 IndentationError: unindent does not match any outer indentation level,我检查了这个 - discord bot - userinfo command "IndentationError: unexpected indent",但我不知道如何修复我的代码
这一行出错 - emb = discord.Embed( title = f'{ ctx.author } | { ctx.author.display_name }', color = discord.Color.green(), description = f'{ctx.author.id} |' )
这是我所有的功能
@client.command( aliases = ['uinfo'])
async def userinfo( ctx ):
emb = discord.Embed( title = f'{ ctx.author } | { ctx.author.display_name }', color = discord.Color.green(), description = f'{ctx.author.id} |' )
emb.set_thumbnail( url = ctx.author.avatar_url )
emb.add_field( name = 'Joined server', value = f'{ - }' )
emb.add_field( name = 'Joined discord', value = f'{ - }' )
await ctx.send( embed = emb )
【问题讨论】:
标签: python discord.py