@discordjs/structures 1.0.0-dev.1776730371-8ea7c7c7e → 1.0.0-dev.1779528402-e721e51b0

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.mjs CHANGED
@@ -164,7 +164,7 @@ var AutoModerationActionMetadata = class extends Structure {
164
164
  /**
165
165
  * Channel to which user content should be logged. This must be an existing channel
166
166
  *
167
- * Associated action types: {@link AutoModerationActionType.SendAlertMessage}
167
+ * Associated action types: {@link discord-api-types/v10#AutoModerationActionType.SendAlertMessage}
168
168
  */
169
169
  get channelId() {
170
170
  return this[kData].channel_id;
@@ -172,11 +172,11 @@ var AutoModerationActionMetadata = class extends Structure {
172
172
  /**
173
173
  * Timeout duration in seconds. Maximum of 2419200 seconds (4 weeks).
174
174
  *
175
- * A `TIMEOUT` action can only be set up for {@link AutoModerationRuleTriggerType.Keyword} and {@link AutoModerationRuleTriggerType.MentionSpam}.
175
+ * A `TIMEOUT` action can only be set up for {@link discord-api-types/v10#AutoModerationRuleTriggerType.Keyword} and {@link discord-api-types/v10#AutoModerationRuleTriggerType.MentionSpam}.
176
176
  *
177
- * The `MODERATE_MEMBERS` permission is required to use {@link AutoModerationActionType.Timeout} actions.
177
+ * The `MODERATE_MEMBERS` permission is required to use {@link discord-api-types/v10#AutoModerationActionType.Timeout} actions.
178
178
  *
179
- * Associated action types: {@link AutoModerationActionType.Timeout}
179
+ * Associated action types: {@link discord-api-types/v10#AutoModerationActionType.Timeout}
180
180
  */
181
181
  get durationSeconds() {
182
182
  return this[kData].duration_seconds;
@@ -184,7 +184,7 @@ var AutoModerationActionMetadata = class extends Structure {
184
184
  /**
185
185
  * Additional explanation that will be shown to members whenever their message is blocked. Maximum of 150 characters
186
186
  *
187
- * Associated action types: {@link AutoModerationActionType.BlockMessage}
187
+ * Associated action types: {@link discord-api-types/v10#AutoModerationActionType.BlockMessage}
188
188
  */
189
189
  get customMessage() {
190
190
  return this[kData].custom_message;
@@ -278,7 +278,7 @@ var AutoModerationRuleTriggerMetadata = class extends Structure {
278
278
  *
279
279
  * @see {@link https://discord.com/developers/docs/resources/auto-moderation#auto-moderation-rule-object-keyword-matching-strategies | Keyword matching strategies}
280
280
  *
281
- * Associated trigger types: {@link AutoModerationRuleTriggerType.Keyword}, {@link AutoModerationRuleTriggerType.MemberProfile}
281
+ * Associated trigger types: {@link discord-api-types/v10#AutoModerationRuleTriggerType.Keyword}, {@link discord-api-types/v10#AutoModerationRuleTriggerType.MemberProfile}
282
282
  */
283
283
  get keywordFilter() {
284
284
  return this[kData].keyword_filter;
@@ -290,7 +290,7 @@ var AutoModerationRuleTriggerMetadata = class extends Structure {
290
290
  *
291
291
  * Each regex pattern must be 260 characters or less.
292
292
  *
293
- * Associated trigger types: {@link AutoModerationRuleTriggerType.Keyword}, {@link AutoModerationRuleTriggerType.MemberProfile}
293
+ * Associated trigger types: {@link discord-api-types/v10#AutoModerationRuleTriggerType.Keyword}, {@link discord-api-types/v10#AutoModerationRuleTriggerType.MemberProfile}
294
294
  */
295
295
  get regexPatterns() {
296
296
  return this[kData].regex_patterns;
@@ -300,7 +300,7 @@ var AutoModerationRuleTriggerMetadata = class extends Structure {
300
300
  *
301
301
  * @see {@link https://discord.com/developers/docs/resources/auto-moderation#auto-moderation-rule-object-keyword-preset-types | Keyword preset types}
302
302
  *
303
- * Associated trigger types: {@link AutoModerationRuleTriggerType.KeywordPreset}
303
+ * Associated trigger types: {@link discord-api-types/v10#AutoModerationRuleTriggerType.KeywordPreset}
304
304
  */
305
305
  get presets() {
306
306
  return this[kData].presets;
@@ -319,7 +319,7 @@ var AutoModerationRuleTriggerMetadata = class extends Structure {
319
319
  * @see {@link https://discord.com/developers/docs/resources/auto-moderation#auto-moderation-rule-object-trigger-types | triggerType}
320
320
  * @see {@link https://discord.com/developers/docs/resources/auto-moderation#auto-moderation-rule-object-keyword-matching-strategies | Keyword matching strategies}
321
321
  *
322
- * Associated trigger types: {@link AutoModerationRuleTriggerType.Keyword}, {@link AutoModerationRuleTriggerType.KeywordPreset}, {@link AutoModerationRuleTriggerType.MemberProfile}
322
+ * Associated trigger types: {@link discord-api-types/v10#AutoModerationRuleTriggerType.Keyword}, {@link discord-api-types/v10#AutoModerationRuleTriggerType.KeywordPreset}, {@link discord-api-types/v10#AutoModerationRuleTriggerType.MemberProfile}
323
323
  */
324
324
  get allowList() {
325
325
  return this[kData].allow_list;
@@ -327,7 +327,7 @@ var AutoModerationRuleTriggerMetadata = class extends Structure {
327
327
  /**
328
328
  * Total number of unique role and user mentions allowed per message (Maximum of 50)
329
329
  *
330
- * Associated trigger types: {@link AutoModerationRuleTriggerType.MentionSpam}
330
+ * Associated trigger types: {@link discord-api-types/v10#AutoModerationRuleTriggerType.MentionSpam}
331
331
  */
332
332
  get mentionTotalLimit() {
333
333
  return this[kData].mention_total_limit;
@@ -335,7 +335,7 @@ var AutoModerationRuleTriggerMetadata = class extends Structure {
335
335
  /**
336
336
  * Whether to automatically detect mention raids
337
337
  *
338
- * Associated trigger types: {@link AutoModerationRuleTriggerType.MentionSpam}
338
+ * Associated trigger types: {@link discord-api-types/v10#AutoModerationRuleTriggerType.MentionSpam}
339
339
  */
340
340
  get mentionRaidProtectionEnabled() {
341
341
  return this[kData].mention_raid_protection_enabled;
@@ -3801,6 +3801,49 @@ var RoleSubscriptionData = class extends Structure {
3801
3801
  }
3802
3802
  };
3803
3803
 
3804
+ // src/messages/SharedClientTheme.ts
3805
+ var SharedClientTheme = class extends Structure {
3806
+ static {
3807
+ __name(this, "SharedClientTheme");
3808
+ }
3809
+ /**
3810
+ * The template used for removing data from the raw data stored for each SharedClientTheme.
3811
+ */
3812
+ static DataTemplate = {};
3813
+ /**
3814
+ * @param data - The raw data received from the API for the shared client theme
3815
+ */
3816
+ constructor(data) {
3817
+ super(data);
3818
+ }
3819
+ /**
3820
+ * The hexadecimal-encoded colors of this theme (max of 5)
3821
+ */
3822
+ get colors() {
3823
+ return this[kData].colors;
3824
+ }
3825
+ /**
3826
+ * The gradient angle (direction) of this theme's colors (0–360)
3827
+ */
3828
+ get gradientAngle() {
3829
+ return this[kData].gradient_angle;
3830
+ }
3831
+ /**
3832
+ * The base mix (intensity) of this theme's colors (0–100)
3833
+ */
3834
+ get baseMix() {
3835
+ return this[kData].base_mix;
3836
+ }
3837
+ /**
3838
+ * The base theme mode
3839
+ *
3840
+ * @see {@link https://docs.discord.com/developers/resources/message#base-theme-types}
3841
+ */
3842
+ get baseTheme() {
3843
+ return this[kData].base_theme;
3844
+ }
3845
+ };
3846
+
3804
3847
  // src/polls/Poll.ts
3805
3848
  var Poll = class extends Structure {
3806
3849
  static {
@@ -4985,7 +5028,7 @@ var Subscription = class extends Structure {
4985
5028
  return endTimestamp ? new Date(endTimestamp) : null;
4986
5029
  }
4987
5030
  /**
4988
- * The {@link SubscriptionStatus} of the current subscription
5031
+ * The {@link discord-api-types/v10#SubscriptionStatus} of the current subscription
4989
5032
  */
4990
5033
  get status() {
4991
5034
  return this[kData].status;
@@ -4999,7 +5042,7 @@ var Subscription = class extends Structure {
4999
5042
  /**
5000
5043
  * The time when the subscription was canceled
5001
5044
  *
5002
- * @remarks This is populated when the {@link Subscription#status} transitions to {@link SubscriptionStatus.Ending}.
5045
+ * @remarks This is populated when the {@link Subscription.status} transitions to {@link discord-api-types/v10#SubscriptionStatus.Ending}.
5003
5046
  */
5004
5047
  get canceledAt() {
5005
5048
  const canceledTimestamp = this.canceledTimestamp;
@@ -5134,6 +5177,7 @@ export {
5134
5177
  SelectMenuComponent,
5135
5178
  SelectMenuDefaultValue,
5136
5179
  SeparatorComponent,
5180
+ SharedClientTheme,
5137
5181
  SoundboardSound,
5138
5182
  StageChannel,
5139
5183
  StageInstance,