From 6f83e715557ce834e0e5021846836698856a9fec Mon Sep 17 00:00:00 2001 From: Carter <45381083+Fyko@users.noreply.github.com> Date: Tue, 10 Sep 2019 07:47:13 -0600 Subject: [PATCH] feat: Guild#partnered (#3444) * feat: Guild#partnered * typings: added Guild#features * fix: removed trailing space * typings: made Guild#partnered readonly --- src/structures/Guild.js | 9 +++++++++ typings/index.d.ts | 1 + 2 files changed, 10 insertions(+) diff --git a/src/structures/Guild.js b/src/structures/Guild.js index f24f08e68..9de57145b 100644 --- a/src/structures/Guild.js +++ b/src/structures/Guild.js @@ -403,6 +403,15 @@ class Guild extends Base { return new Date(this.joinedTimestamp); } + /** + * If this guild is partnered + * @type {boolean} + * @readonly + */ + get partnered() { + return this.features.includes('PARTNERED'); + } + /** * If this guild is verified * @type {boolean} diff --git a/typings/index.d.ts b/typings/index.d.ts index f98eb2305..af2400847 100644 --- a/typings/index.d.ts +++ b/typings/index.d.ts @@ -708,6 +708,7 @@ declare module 'discord.js' { public readonly nameAcronym: string; public readonly owner: GuildMember | null; public ownerID: Snowflake; + public readonly partnered: boolean; public premiumSubscriptionCount: number | null; public premiumTier: PremiumTier; public presences: PresenceStore;