Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

154
Views
Get user's guild nickname

I have a discord bot that gets the nicknames of people, but nicknames do not seem to be exposed to me. The username is accessible however, the nickname is not:

client.on('interactionCreate', async interaction => {
var username = interaction.user.username; //accessible

I have also tried: interaction.member.displayName and looked at options under interaction.user however been unable to find something that allows me to get nicknames!

about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

If you look at the documentation you can see that to get a nickname you just need interaction.member.nickname

Note:

  • Member may be null, for example if the interaction was not done in a guild, but in a private messages (DM)
  • .nickname can be undefined as the member may not have one
about 4 years ago · Juan Pablo Isaza Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!