discord / discord-api-docs

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

User object is now returning null for premium_type field #5132

Closed jgoldshlag closed 2 years ago

jgoldshlag commented 2 years ago

Description

As of the API push an hour or so ago, the user json returned by the API now has premium_type = null for non-nitro accounts, it used to be 0, and it is defined as returning an integer. This is breaking some libraries

Steps to Reproduce

do a get on /users/@me (as long as you don't have Nitro)

Expected Behavior

it should return an integer, like it used to do and is documented as doing

Current Behavior

it is returning null

Screenshots/Videos

No response

Client and System Information

I am hitting the issue using Discord.NET

typpo commented 2 years ago

This will be fixed shortly

typpo commented 2 years ago

The fix is complete