Skip to content

Commit

Permalink
Type guild features as actual values (abalabahaha#1212)
Browse files Browse the repository at this point in the history
  • Loading branch information
bsian03 committed Aug 19, 2021
1 parent 4bb65f0 commit 840227e
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ declare namespace Eris {
// Guild
type DefaultNotifications = 0 | 1;
type ExplicitContentFilter = 0 | 1 | 2;
type GuildFeatures = "ANIMATED_ICON" | "BANNER" | "COMMERCE" | "COMMUNITY" | "DISCOVERABLE" | "FEATURABLE" | "INVITE_SPLASH" | "MEMBER_VERIFICATION_GATE_ENABLED" | "NEWS" | "PARTNERED" | "PREVIEW_ENABLED" | "VANITY_URL" | "VERIFIED" | "VIP_REGIONS" | "WELCOME_SCREEN_ENABLED" | "TICKETED_EVENTS_ENABLED" | "MONETIZATION_ENABLED" | "MORE_STICKERS" | "THREE_DAY_THREAD_ARCHIVE" | "SEVEN_DAY_THREAD_ARCHIVE" | "PRIVATE_THREADS";
type NSFWLevel = 0 | 1 | 2 | 3;
type PossiblyUncachedGuild = Guild | Uncached;
type PremiumTier = 0 | 1 | 2 | 3;
Expand Down Expand Up @@ -410,7 +411,7 @@ declare namespace Eris {
discoverySplash: string | null;
emojis: Omit<Emoji, "user" | "icon">[];
explicitContentFilter: ExplicitContentFilter;
features: string[];
features: GuildFeatures[];
icon: string | null;
large: boolean;
maxMembers?: number;
Expand Down Expand Up @@ -696,7 +697,7 @@ declare namespace Eris {
description?: string;
discoverySplash?: string;
explicitContentFilter?: ExplicitContentFilter;
features?: string[];
features?: GuildFeatures[]; // Though only some are editable?
icon?: string;
name?: string;
ownerID?: string;
Expand Down Expand Up @@ -1977,7 +1978,7 @@ declare namespace Eris {
emojiCount?: number;
emojis: Emoji[];
explicitContentFilter: ExplicitContentFilter;
features: string[];
features: GuildFeatures[];
icon: string | null;
iconURL: string | null;
id: string;
Expand Down Expand Up @@ -2180,7 +2181,7 @@ declare namespace Eris {
discoverySplash: string | null;
discoverySplashURL: string | null;
emojis: Emoji[];
features: string[];
features: GuildFeatures[];
icon: string | null;
iconURL: string | null;
id: string;
Expand Down

0 comments on commit 840227e

Please sign in to comment.