@discordjs/structures 0.2.0-dev.1769558523-b0e413c11 → 0.2.0-dev.1769601701-c71228aab
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.mts +67 -8
- package/dist/index.d.ts +67 -8
- package/dist/index.js +87 -7
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +81 -3
- package/dist/index.mjs.map +1 -1
- package/package.json +2 -2
package/dist/index.mjs
CHANGED
|
@@ -137,7 +137,9 @@ var AutoModerationAction = class extends Structure {
|
|
|
137
137
|
super(data);
|
|
138
138
|
}
|
|
139
139
|
/**
|
|
140
|
-
* The
|
|
140
|
+
* The action type
|
|
141
|
+
*
|
|
142
|
+
* @see {@link https://discord.com/developers/docs/resources/auto-moderation#auto-moderation-action-object-action-types}
|
|
141
143
|
*/
|
|
142
144
|
get type() {
|
|
143
145
|
return this[kData].type;
|
|
@@ -229,13 +231,17 @@ var AutoModerationRule = class extends Structure {
|
|
|
229
231
|
return this[kData].creator_id;
|
|
230
232
|
}
|
|
231
233
|
/**
|
|
232
|
-
* The rule
|
|
234
|
+
* The rule event type
|
|
235
|
+
*
|
|
236
|
+
* @see {@link https://discord.com/developers/docs/resources/auto-moderation#auto-moderation-rule-object-event-types}
|
|
233
237
|
*/
|
|
234
238
|
get eventType() {
|
|
235
239
|
return this[kData].event_type;
|
|
236
240
|
}
|
|
237
241
|
/**
|
|
238
|
-
* The rule
|
|
242
|
+
* The rule trigger type
|
|
243
|
+
*
|
|
244
|
+
* @see {@link https://discord.com/developers/docs/resources/auto-moderation#auto-moderation-rule-object-trigger-types}
|
|
239
245
|
*/
|
|
240
246
|
get triggerType() {
|
|
241
247
|
return this[kData].trigger_type;
|
|
@@ -606,6 +612,21 @@ var PermissionsBitField = class extends BitField {
|
|
|
606
612
|
}
|
|
607
613
|
};
|
|
608
614
|
|
|
615
|
+
// src/bitfields/SKUFlagsBitField.ts
|
|
616
|
+
import { SKUFlags } from "discord-api-types/v10";
|
|
617
|
+
var SKUFlagsBitField = class extends BitField {
|
|
618
|
+
static {
|
|
619
|
+
__name(this, "SKUFlagsBitField");
|
|
620
|
+
}
|
|
621
|
+
/**
|
|
622
|
+
* Numeric SKU flags.
|
|
623
|
+
*/
|
|
624
|
+
static Flags = SKUFlags;
|
|
625
|
+
toJSON() {
|
|
626
|
+
return super.toJSON(true);
|
|
627
|
+
}
|
|
628
|
+
};
|
|
629
|
+
|
|
609
630
|
// src/channels/mixins/AppliedTagsMixin.ts
|
|
610
631
|
var AppliedTagsMixin = class {
|
|
611
632
|
static {
|
|
@@ -3956,6 +3977,61 @@ var PollResults = class extends Structure {
|
|
|
3956
3977
|
}
|
|
3957
3978
|
};
|
|
3958
3979
|
|
|
3980
|
+
// src/skus/SKU.ts
|
|
3981
|
+
var SKU = class extends Structure {
|
|
3982
|
+
static {
|
|
3983
|
+
__name(this, "SKU");
|
|
3984
|
+
}
|
|
3985
|
+
/**
|
|
3986
|
+
* The template used for removing data from the raw data stored for each SKU
|
|
3987
|
+
*/
|
|
3988
|
+
static DataTemplate = {};
|
|
3989
|
+
/**
|
|
3990
|
+
* @param data - The raw data received from the API for the SKU
|
|
3991
|
+
*/
|
|
3992
|
+
constructor(data) {
|
|
3993
|
+
super(data);
|
|
3994
|
+
}
|
|
3995
|
+
/**
|
|
3996
|
+
* Id of the SKU
|
|
3997
|
+
*/
|
|
3998
|
+
get id() {
|
|
3999
|
+
return this[kData].id;
|
|
4000
|
+
}
|
|
4001
|
+
/**
|
|
4002
|
+
* Type of SKU
|
|
4003
|
+
*
|
|
4004
|
+
* @see {@link https://discord.com/developers/docs/resources/sku#sku-object-sku-types}
|
|
4005
|
+
*/
|
|
4006
|
+
get type() {
|
|
4007
|
+
return this[kData].type;
|
|
4008
|
+
}
|
|
4009
|
+
/**
|
|
4010
|
+
* Id of the parent application
|
|
4011
|
+
*/
|
|
4012
|
+
get applicationId() {
|
|
4013
|
+
return this[kData].application_id;
|
|
4014
|
+
}
|
|
4015
|
+
/**
|
|
4016
|
+
* Customer-facing name of your premium offering
|
|
4017
|
+
*/
|
|
4018
|
+
get name() {
|
|
4019
|
+
return this[kData].name;
|
|
4020
|
+
}
|
|
4021
|
+
/**
|
|
4022
|
+
* System-generated URL slug based on the SKU's name
|
|
4023
|
+
*/
|
|
4024
|
+
get slug() {
|
|
4025
|
+
return this[kData].slug;
|
|
4026
|
+
}
|
|
4027
|
+
/**
|
|
4028
|
+
* SKU flags combined as a bitfield
|
|
4029
|
+
*/
|
|
4030
|
+
get flags() {
|
|
4031
|
+
return isFieldSet(this[kData], "flags", "number") ? new SKUFlagsBitField(this[kData].flags) : null;
|
|
4032
|
+
}
|
|
4033
|
+
};
|
|
4034
|
+
|
|
3959
4035
|
// src/soundboards/SoundboardSound.ts
|
|
3960
4036
|
import { DiscordSnowflake as DiscordSnowflake5 } from "@sapphire/snowflake";
|
|
3961
4037
|
var SoundboardSound = class extends Structure {
|
|
@@ -4944,6 +5020,8 @@ export {
|
|
|
4944
5020
|
ResolvedInteractionData,
|
|
4945
5021
|
RoleSelectMenuComponent,
|
|
4946
5022
|
RoleSubscriptionData,
|
|
5023
|
+
SKU,
|
|
5024
|
+
SKUFlagsBitField,
|
|
4947
5025
|
SectionComponent,
|
|
4948
5026
|
SelectMenuComponent,
|
|
4949
5027
|
SelectMenuDefaultValue,
|