From 2dddbe1f321f2e2722dba4a28f7d18384cf50353 Mon Sep 17 00:00:00 2001 From: Ben <88249114+BenjammingKirby@users.noreply.github.com> Date: Fri, 14 Apr 2023 17:04:57 -0500 Subject: [PATCH] feat(RoleTagData): add guildConnections (#9366) * feat(roleTagData): add guildConnections * feat(roletagdata): add guildConnections * Update packages/discord.js/typings/index.d.ts Co-authored-by: Jiralite <33201955+Jiralite@users.noreply.github.com> --------- Co-authored-by: Jiralite <33201955+Jiralite@users.noreply.github.com> Co-authored-by: space --- packages/discord.js/src/structures/Role.js | 4 ++++ packages/discord.js/typings/index.d.ts | 1 + 2 files changed, 5 insertions(+) diff --git a/packages/discord.js/src/structures/Role.js b/packages/discord.js/src/structures/Role.js index 0664b6a3f..4acc806e8 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 28b6ace85..47f500f7e 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 {