Discord.py: Change own nickname

Created on 5 Jan 2018  路  7Comments  路  Source: Rapptz/discord.py

A function, say, client.change_own_nick(server, name) that, well, changes the bot's nickname automagically.

Most helpful comment

All 7 comments

Just use change_nickname with your own member passed in.

How should I get the bot's member? (i.e., the best/correct way)

That was fast

I have a question about this topic.
I'm following what you told Blacksilver42 and I did the following:

(this is part of a command I created in order to change the Bot's nickname)
me = context.message.server.me
client.change_nickname(me, "Newnickname")

I get no errors but the bot does not change its nickname and I don't know why (roles allow nickname change and I also tried it by granting Admin privileges to the bot).

Do you have any suggestions for me? Thanks in advance!

You forgot to await change_nickname.

Thank you @Vrori . Now it works as it should!

Anytime!

Happy developing.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

pappabewar picture pappabewar  路  26Comments

Yuvira picture Yuvira  路  18Comments

VoxelPrismatic picture VoxelPrismatic  路  16Comments

marcoshuck picture marcoshuck  路  16Comments

ThePiGuy24 picture ThePiGuy24  路  17Comments