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

PicklesJars picture PicklesJars  路  3Comments

Rimmy50 picture Rimmy50  路  3Comments

TunaHobby picture TunaHobby  路  3Comments

JackL0 picture JackL0  路  3Comments

j0hnmeow picture j0hnmeow  路  3Comments