From 322af3f24ceaa31821c608984fbd3dc1461f83a8 Mon Sep 17 00:00:00 2001 From: Ben <88249114+BenjammingKirby@users.noreply.github.com> Date: Fri, 14 Apr 2023 17:15:59 -0500 Subject: [PATCH 1/2] feat(roleTagData): add guildConnections --- src/structures/Role.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/structures/Role.js b/src/structures/Role.js index c35a42491d1a..76f02aca954e 100644 --- a/src/structures/Role.js +++ b/src/structures/Role.js @@ -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; + } } } From d58d8c0aaac26ebfdd992e127cbf5d0f3b690d75 Mon Sep 17 00:00:00 2001 From: Ben <88249114+BenjammingKirby@users.noreply.github.com> Date: Fri, 14 Apr 2023 17:17:28 -0500 Subject: [PATCH 2/2] feat(roleTagData): add guildConnections --- typings/index.d.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/typings/index.d.ts b/typings/index.d.ts index c428e8166350..2de47c5bd62a 100644 --- a/typings/index.d.ts +++ b/typings/index.d.ts @@ -6173,6 +6173,7 @@ export interface RoleTagData { premiumSubscriberRole?: true; subscriptionListingId?: Snowflake; availableForPurchase?: true; + guildConnections?: true; } export interface SetChannelPositionOptions {