mirror of
https://github.com/danbulant/discord.js
synced 2026-05-27 22:11:53 +00: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:
parent
8e0f525d91
commit
6f83e71555
2 changed files with 10 additions and 0 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in a new issue