Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to change bot username / avatar with Discord.py rewrite?

I have been searching for how to do this, but it seems the only solutions I could find didn't work.

like image 657
Sock Avatar asked Sep 15 '18 21:09

Sock


1 Answers

Use ClientUser.edit on the Client.user object that represents your bot:

@bot.command()
async def rename(ctx, name):
    await bot.user.edit(username=name)
like image 82
Patrick Haugh Avatar answered Sep 30 '22 06:09

Patrick Haugh