discord / discord-api-docs

Official Discord API Documentation
https://discord.com/developers/docs/intro
Other
5.86k stars 1.23k forks source link

`global_name` is null for user objects of bots #6977

Open KubaZ2 opened 2 weeks ago

KubaZ2 commented 2 weeks ago

Description

global_name in the user object is null for bots even though it's documented that it is the bot's app name for them.

Steps to Reproduce

curl https://discord.com/api/v10/users/803161944101486593 -H "Authorization: Bot {token}"

Expected Behavior

global_name is the app name for bots

Current Behavior

global_name is null for bots

Screenshots/Videos

No response

Client and System Information

Luna-devv commented 2 weeks ago

Bots have a username, no global_name - Actually, any user that hasn't set a global_name won't have one, username will be always populated though

KubaZ2 commented 2 weeks ago

Bots have a username, no global_name - Actually, any user that hasn't set a global_name won't have one, username will be always populated though

image