📜  discord python bot 如何更改某人的昵称 - Python 代码示例

📅  最后修改于: 2022-03-11 14:47:21.787000             🧑  作者: Mango

代码示例1
@client.command(pass_context=True)
async def chnick(ctx, member: discord.Member, *,nick):
    await member.edit(nick=nick)
    await ctx.send(f'Nickname was changed for {member.mention} ')