Skip to content

Commit 0310bfc

Browse files
committed
Revert "Support User#premiumType (#1149)"
This reverts commit 3990957.
1 parent ff8d901 commit 0310bfc

File tree

2 files changed

+0
-6
lines changed

2 files changed

+0
-6
lines changed

index.d.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2425,7 +2425,6 @@ declare namespace Eris {
24252425
discriminator: string;
24262426
id: string;
24272427
mention: string;
2428-
premiumType?: 0 | 1 | 2;
24292428
publicFlags?: number;
24302429
staticAvatarURL: string;
24312430
system: boolean;

lib/structures/User.js

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@ const Endpoints = require("../rest/Endpoints");
1414
* @prop {String} discriminator The discriminator of the user
1515
* @prop {String} id The ID of the user
1616
* @prop {String} mention A string that mentions the user
17-
* @prop {Number?} premiumType The type of nitro the user has
1817
* @prop {Number?} publicFlags Publicly visible flags for this user
1918
* @prop {String} staticAvatarURL The URL of the user's avatar (always a JPG)
2019
* @prop {Boolean} system Whether the user is an official Discord system user (e.g. urgent messages)
@@ -42,9 +41,6 @@ class User extends Base {
4241
if(data.discriminator !== undefined) {
4342
this.discriminator = data.discriminator;
4443
}
45-
if(data.premium_type !== undefined) {
46-
this.premiumType = data.premium_type;
47-
}
4844
if(data.public_flags !== undefined) {
4945
this.publicFlags = data.public_flags;
5046
}
@@ -139,7 +135,6 @@ class User extends Base {
139135
"avatar",
140136
"bot",
141137
"discriminator",
142-
"premiumType",
143138
"publicFlags",
144139
"system",
145140
"username",

0 commit comments

Comments
 (0)