feat(Guild): add enum for premium_tier (#5868)

This commit is contained in:
Shubham Parihar
2021-06-16 20:03:01 +05:30
committed by GitHub
parent a0b7d95e36
commit a3cbcca13d
3 changed files with 22 additions and 12 deletions

10
typings/index.d.ts vendored
View File

@@ -95,6 +95,13 @@ declare enum OverwriteTypes {
member = 1,
}
declare enum PremiumTiers {
NONE = 0,
TIER_1 = 1,
TIER_2 = 2,
TIER_3 = 3,
}
declare enum PrivacyLevels {
PUBLIC = 1,
GUILD_ONLY = 2,
@@ -717,6 +724,7 @@ declare module 'discord.js' {
NSFWLevels: typeof NSFWLevels;
PrivacyLevels: typeof PrivacyLevels;
WebhookTypes: typeof WebhookTypes;
PremiumTiers: typeof PremiumTiers;
};
export class DataResolver {
@@ -3605,7 +3613,7 @@ declare module 'discord.js' {
type RecursiveReadonlyArray<T> = ReadonlyArray<T | RecursiveReadonlyArray<T>>;
type PremiumTier = 0 | 1 | 2 | 3;
type PremiumTier = keyof typeof PremiumTiers;
interface PresenceData {
status?: PresenceStatusData;