Setting Nicknames
Is there a good way to set a user's nickname (by userID) when using sapphire?
8 Replies
The same way you would with discordjs
For clarification, you would first fetch the member, then use
setNickname()
Now I may sound dumb, but where is the guild object coming from
That's up to you. It's whatever guild you want to update the nickname in. For example, if you're doing this in response to an interaction, it would be
interaction.guild
. If you have a specific guild id, it would be:
@bifocalcanvas (in case you don't have notifications on for this thread)Thank you! I got it to work.
Solution
👍
In the future, as favvy wavvy mentioned, this would be more appropriate for #discordjs-support
ah ok