Closed SIGSTACKFAULT closed 6 years ago
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.
A function, say,
client.change_own_nick(server, name)
that, well, changes the bot's nickname automagically.