Change user nickname with discord.js
问题 I wonder if you can help (I search it and nothing...) I am learning how to work with discord.js node and I want to change my user nickname (not the username itself) My code is const Discord = require('discord.js'); const client = new Discord.Client(); client.on('ready', () => { console.log('I am ready!'); }); client.on('message', message => { if (message.content.includes('changeNick')) { client.setNickname({nick: message.content.replace('changeNick ', '')}); } }); client.login('token'); 回答1: