Skip to content

Commit

Permalink
Revert "Support User#premiumType (#1149)"
Browse files Browse the repository at this point in the history
This reverts commit 3990957.
  • Loading branch information
abalabahaha committed Apr 4, 2021
1 parent ff8d901 commit 0310bfc
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 6 deletions.
1 change: 0 additions & 1 deletion index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2425,7 +2425,6 @@ declare namespace Eris {
discriminator: string;
id: string;
mention: string;
premiumType?: 0 | 1 | 2;
publicFlags?: number;
staticAvatarURL: string;
system: boolean;
Expand Down
5 changes: 0 additions & 5 deletions lib/structures/User.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ const Endpoints = require("../rest/Endpoints");
* @prop {String} discriminator The discriminator of the user
* @prop {String} id The ID of the user
* @prop {String} mention A string that mentions the user
* @prop {Number?} premiumType The type of nitro the user has
* @prop {Number?} publicFlags Publicly visible flags for this user
* @prop {String} staticAvatarURL The URL of the user's avatar (always a JPG)
* @prop {Boolean} system Whether the user is an official Discord system user (e.g. urgent messages)
Expand Down Expand Up @@ -42,9 +41,6 @@ class User extends Base {
if(data.discriminator !== undefined) {
this.discriminator = data.discriminator;
}
if(data.premium_type !== undefined) {
this.premiumType = data.premium_type;
}
if(data.public_flags !== undefined) {
this.publicFlags = data.public_flags;
}
Expand Down Expand Up @@ -139,7 +135,6 @@ class User extends Base {
"avatar",
"bot",
"discriminator",
"premiumType",
"publicFlags",
"system",
"username",
Expand Down

0 comments on commit 0310bfc

Please sign in to comment.