diff --git a/packages/discord.js/src/structures/Role.js b/packages/discord.js/src/structures/Role.js index 0664b6a3f91a..4acc806e8d2f 100644 --- a/packages/discord.js/src/structures/Role.js +++ b/packages/discord.js/src/structures/Role.js @@ -109,6 +109,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) { @@ -127,6 +128,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; + } } } diff --git a/packages/discord.js/typings/index.d.ts b/packages/discord.js/typings/index.d.ts index 28b6ace85158..47f500f7e5c1 100644 --- a/packages/discord.js/typings/index.d.ts +++ b/packages/discord.js/typings/index.d.ts @@ -6105,6 +6105,7 @@ export interface RoleTagData { premiumSubscriberRole?: true; subscriptionListingId?: Snowflake; availableForPurchase?: true; + guildConnections?: true; } export interface SetChannelPositionOptions {