Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Nickname is always null, bot has right permissions and intents #9749

Closed
mgajic opened this issue Aug 3, 2023 · 5 comments
Closed

Nickname is always null, bot has right permissions and intents #9749

mgajic opened this issue Aug 3, 2023 · 5 comments

Comments

@mgajic
Copy link

mgajic commented Aug 3, 2023

Which package is this bug report for?

discord.js

Issue description

  1. Fetch a guild
  2. Fetch a member inside guild
  3. Username is not null, but nickname is always null
  4. On update guild member event, nickname is present, but when fetching it from guild its not
  5. Bot has all the permissions and intents, and it worked before

Code sample

No response

Versions

-discord 13 & 14

Issue priority

High (immediate attention needed)

Which partials do you have configured?

GuildMember

Which gateway intents are you subscribing to?

GuildMembers

I have tested this issue on a development release

No response

@Idris1401
Copy link
Contributor

image

@mgajic mgajic closed this as completed Aug 4, 2023
@mgajic mgajic reopened this Aug 4, 2023
@mgajic
Copy link
Author

mgajic commented Aug 4, 2023

Hey thanks for replying. Is there any other way to fetch the nickname, without interaction?
My use case is to iterate through all users and check for problematic nicknames.

@SpaceEEC
Copy link
Member

SpaceEEC commented Aug 4, 2023

Could you provide a minimal reproducible sample for this?

@mgajic
Copy link
Author

mgajic commented Aug 4, 2023

let guild = await client.guilds.fetch("someIDofTheguild");
guild.members
.fetch()
.then((fetchedMembers) => {
fetchedMembers.forEach(function (m) {
if(m.id == "memberID"){
console.log('Nickname is null, and display name is null, but username is there');
}

        });
    })

@Jiralite
Copy link
Member

Jiralite commented Aug 4, 2023

We are not able to reproduce this. We can reopen this with reproducible steps, but from the looks of it, perhaps they just don't have a nickname.

@Jiralite Jiralite closed this as not planned Won't fix, can't repro, duplicate, stale Aug 4, 2023
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Aug 4, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

4 participants