how to get user’s displayName

I am trying to display the server members displayName not usernmae but it returns with a username even tho i use member.displayName
Was this page helpful?