#remove something specific from someones nickname
10 messages · Page 1 of 1 (latest)
- What's your exact discord.js
npm list discord.jsand nodenode -vversion? - Not a discord.js issue? Check out #1081585952654360687.
- Consider reading #how-to-get-help to improve your question!
- Explain what exactly your issue is.
- Post the full error stack trace, not just the top part!
- Show your code!
- Issue solved? Press the button!
(event) Client#guildMemberUpdate @14.15.2
Emitted whenever a guild member changes - i.e. new role, removed role, nickname.
GuildMember#setNickname @14.15.2
Sets the nickname for this member.
// Set a nickname for a guild member
guildMember.setNickname('cool nickname', 'Needed a new nickname')
.then(member => console.log(`Set nickname of ${member.user.username}`))
.catch(console.error);
listen to that event, check its nickname and change if needed ^^
the nickname is already there i just want it to go through the members of the discord, find the people with - kelp in their nickname and remove it
is that possible?
Guild#members @14.15.2
A manager of the members belonging to this guild
GuildMemberManager#fetch @14.15.2
Fetches member(s) from a guild.
// Fetch all members from a guild
guild.members.fetch()
.then(console.log)
.catch(console.error);
just iterate there