mirror of
https://github.com/discordjs/discord.js.git
synced 2024-08-20 19:14:44 +12:00
feat(roleTagData): v13 add guildConnections (#9391)
* feat(roleTagData): add guildConnections * feat(roleTagData): add guildConnections
This commit is contained in:
parent
28a5c7b125
commit
71161518ca
2 changed files with 5 additions and 0 deletions
|
@ -119,6 +119,7 @@ class Role extends Base {
|
|||
* @property {true} [premiumSubscriberRole] Whether this is the guild's premium subscription role
|
||||
* @property {Snowflake} [subscriptionListingId] The id of this role's subscription SKU and listing
|
||||
* @property {true} [availableForPurchase] Whether this role is available for purchase
|
||||
* @property {true} [guildConnections] Whether this role is a guild's linked role
|
||||
*/
|
||||
this.tags = data.tags ? {} : null;
|
||||
if (data.tags) {
|
||||
|
@ -137,6 +138,9 @@ class Role extends Base {
|
|||
if ('available_for_purchase' in data.tags) {
|
||||
this.tags.availableForPurchase = true;
|
||||
}
|
||||
if ('guild_connections' in data.tags) {
|
||||
this.tags.guildConnections = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
1
typings/index.d.ts
vendored
1
typings/index.d.ts
vendored
|
@ -6173,6 +6173,7 @@ export interface RoleTagData {
|
|||
premiumSubscriberRole?: true;
|
||||
subscriptionListingId?: Snowflake;
|
||||
availableForPurchase?: true;
|
||||
guildConnections?: true;
|
||||
}
|
||||
|
||||
export interface SetChannelPositionOptions {
|
||||
|
|
Loading…
Reference in a new issue