Answer the question
In order to leave comments, you need to log in
Discord bot does not change nickname, how to solve the problem?
I'm trying to implement the function of changing the nickname, through the bot in the discord.
When I try to change the name through the bot, an error appears in the console, swears at the rights.
I checked the rights of the bot, everything is set.
Just in case, in the guild I set the bot a role with all rights.
if (msg.content == '333') {
msg.guild.members.get(msg.author.id).setNickname("Шашлык")
}
Answer the question
In order to leave comments, you need to log in
Are you trying to change your nickname through a bot and you are the owner of the server? A bot with no rights can in any way edit your profile, because in any case you are higher than it
@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} ')
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question