mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-12 09:33:32 +01:00
feat: Guild#partnered (#3444)
* feat: Guild#partnered * typings: added Guild#features * fix: removed trailing space * typings: made Guild#partnered readonly
This commit is contained in:
@@ -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}
|
||||
|
||||
1
typings/index.d.ts
vendored
1
typings/index.d.ts
vendored
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user