mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-19 21:13:30 +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);
|
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
|
* If this guild is verified
|
||||||
* @type {boolean}
|
* @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 nameAcronym: string;
|
||||||
public readonly owner: GuildMember | null;
|
public readonly owner: GuildMember | null;
|
||||||
public ownerID: Snowflake;
|
public ownerID: Snowflake;
|
||||||
|
public readonly partnered: boolean;
|
||||||
public premiumSubscriptionCount: number | null;
|
public premiumSubscriptionCount: number | null;
|
||||||
public premiumTier: PremiumTier;
|
public premiumTier: PremiumTier;
|
||||||
public presences: PresenceStore;
|
public presences: PresenceStore;
|
||||||
|
|||||||
Reference in New Issue
Block a user