Skip to content

Commit

Permalink
feat: Guild#partnered (#3444)
Browse files Browse the repository at this point in the history
* feat: Guild#partnered

* typings: added Guild#features

* fix: removed trailing space

* typings: made Guild#partnered readonly
  • Loading branch information
Fyko authored and iCrawl committed Sep 10, 2019
1 parent 8e0f525 commit 6f83e71
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/structures/Guild.js
Expand Up @@ -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}
Expand Down
1 change: 1 addition & 0 deletions typings/index.d.ts
Expand Up @@ -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;
Expand Down

0 comments on commit 6f83e71

Please sign in to comment.