From 345e20180a94b4390d685e75cd5f9cac032775a4 Mon Sep 17 00:00:00 2001 From: Elysia <71698422+aiko-chan-ai@users.noreply.github.com> Date: Thu, 20 Apr 2023 18:23:22 +0700 Subject: [PATCH] feat(roleTagData): v13 add guildConnections --- src/structures/Role.js | 4 ++++ typings/index.d.ts | 1 + 2 files changed, 5 insertions(+) diff --git a/src/structures/Role.js b/src/structures/Role.js index c35a424..76f02ac 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; + } } } diff --git a/typings/index.d.ts b/typings/index.d.ts index fa73f9c..13d88fd 100644 --- a/typings/index.d.ts +++ b/typings/index.d.ts @@ -7151,6 +7151,7 @@ export interface RoleTagData { premiumSubscriberRole?: true; subscriptionListingId?: Snowflake; availableForPurchase?: true; + guildConnections?: true; } export interface SetChannelPositionOptions {