mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-14 10:33:30 +01:00
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 <spaceeec@yahoo.com>
This commit is contained in:
@@ -109,6 +109,7 @@ class Role extends Base {
|
|||||||
* @property {true} [premiumSubscriberRole] Whether this is the guild's premium subscription role
|
* @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 {Snowflake} [subscriptionListingId] The id of this role's subscription SKU and listing
|
||||||
* @property {true} [availableForPurchase] Whether this role is available for purchase
|
* @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;
|
this.tags = data.tags ? {} : null;
|
||||||
if (data.tags) {
|
if (data.tags) {
|
||||||
@@ -127,6 +128,9 @@ class Role extends Base {
|
|||||||
if ('available_for_purchase' in data.tags) {
|
if ('available_for_purchase' in data.tags) {
|
||||||
this.tags.availableForPurchase = true;
|
this.tags.availableForPurchase = true;
|
||||||
}
|
}
|
||||||
|
if ('guild_connections' in data.tags) {
|
||||||
|
this.tags.guildConnections = true;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
1
packages/discord.js/typings/index.d.ts
vendored
1
packages/discord.js/typings/index.d.ts
vendored
@@ -6105,6 +6105,7 @@ export interface RoleTagData {
|
|||||||
premiumSubscriberRole?: true;
|
premiumSubscriberRole?: true;
|
||||||
subscriptionListingId?: Snowflake;
|
subscriptionListingId?: Snowflake;
|
||||||
availableForPurchase?: true;
|
availableForPurchase?: true;
|
||||||
|
guildConnections?: true;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface SetChannelPositionOptions {
|
export interface SetChannelPositionOptions {
|
||||||
|
|||||||
Reference in New Issue
Block a user