Skip to content

Commit

Permalink
feat(RoleTagData): add guildConnections (#9366)
Browse files Browse the repository at this point in the history
* 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 <spaceeec@yahoo.com>
  • Loading branch information
3 people committed Apr 14, 2023
1 parent 86e5f5a commit 2dddbe1
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
4 changes: 4 additions & 0 deletions packages/discord.js/src/structures/Role.js
Expand Up @@ -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) {
Expand All @@ -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;
}
}
}

Expand Down
1 change: 1 addition & 0 deletions packages/discord.js/typings/index.d.ts
Expand Up @@ -6105,6 +6105,7 @@ export interface RoleTagData {
premiumSubscriberRole?: true;
subscriptionListingId?: Snowflake;
availableForPurchase?: true;
guildConnections?: true;
}

export interface SetChannelPositionOptions {
Expand Down

0 comments on commit 2dddbe1

Please sign in to comment.