discord-api-docs icon indicating copy to clipboard operation
discord-api-docs copied to clipboard

`global_name` is null for user objects of bots

Open KubaZ2 opened this issue 1 year ago • 2 comments

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

KubaZ2 avatar Jul 07 '24 20:07 KubaZ2

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

shi-gg avatar Jul 07 '24 20:07 shi-gg

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

KubaZ2 avatar Jul 07 '24 20:07 KubaZ2