@fluxerjs/util 2.2.0 → 3.0.0

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 CHANGED
@@ -98,6 +98,12 @@ declare const ErrorCodes: {
98
98
  readonly InvalidChannelType: "INVALID_CHANNEL_TYPE";
99
99
  /** Gateway opcode payload missing required fields. */
100
100
  readonly InvalidGatewayRequest: "INVALID_GATEWAY_REQUEST";
101
+ /** Collector ended because its time limit elapsed. */
102
+ readonly CollectorIdle: "COLLECTOR_IDLE";
103
+ /** Collector ended because its max item limit was reached. */
104
+ readonly CollectorMax: "COLLECTOR_MAX";
105
+ /** Collector requires `time` and/or `max`. */
106
+ readonly CollectorOptionsRequired: "COLLECTOR_OPTIONS_REQUIRED";
101
107
  };
102
108
  type ErrorCode = (typeof ErrorCodes)[keyof typeof ErrorCodes];
103
109
 
@@ -133,7 +139,7 @@ declare function formatColor(color: number): string;
133
139
  declare function escapeMarkdown(text: string): string;
134
140
  type TimestampStyle = 't' | 'T' | 'd' | 'D' | 'f' | 'F' | 'R';
135
141
  /**
136
- * Format a Unix timestamp (milliseconds) as a Fluxer/Discord timestamp mention.
142
+ * Format a Unix timestamp (milliseconds) as a Fluxer timestamp mention.
137
143
  * @param timestampMs - Unix timestamp in milliseconds
138
144
  * @param style - Optional display style (`t`, `T`, `d`, `D`, `f`, `F`, `R`)
139
145
  */
@@ -184,7 +190,6 @@ declare const MessageFlagsBits: {
184
190
  readonly SuppressEmbeds: bigint;
185
191
  readonly SuppressNotifications: bigint;
186
192
  readonly VoiceMessage: bigint;
187
- readonly CompactAttachments: bigint;
188
193
  };
189
194
  type MessageFlagsString = keyof typeof MessageFlagsBits;
190
195
  type MessageFlagsResolvable = BitFieldResolvable<MessageFlagsString>;
@@ -193,7 +198,6 @@ declare class MessageFlagsBitField extends BitField<MessageFlagsString> {
193
198
  readonly SuppressEmbeds: bigint;
194
199
  readonly SuppressNotifications: bigint;
195
200
  readonly VoiceMessage: bigint;
196
- readonly CompactAttachments: bigint;
197
201
  };
198
202
  }
199
203
 
package/dist/index.d.ts CHANGED
@@ -98,6 +98,12 @@ declare const ErrorCodes: {
98
98
  readonly InvalidChannelType: "INVALID_CHANNEL_TYPE";
99
99
  /** Gateway opcode payload missing required fields. */
100
100
  readonly InvalidGatewayRequest: "INVALID_GATEWAY_REQUEST";
101
+ /** Collector ended because its time limit elapsed. */
102
+ readonly CollectorIdle: "COLLECTOR_IDLE";
103
+ /** Collector ended because its max item limit was reached. */
104
+ readonly CollectorMax: "COLLECTOR_MAX";
105
+ /** Collector requires `time` and/or `max`. */
106
+ readonly CollectorOptionsRequired: "COLLECTOR_OPTIONS_REQUIRED";
101
107
  };
102
108
  type ErrorCode = (typeof ErrorCodes)[keyof typeof ErrorCodes];
103
109
 
@@ -133,7 +139,7 @@ declare function formatColor(color: number): string;
133
139
  declare function escapeMarkdown(text: string): string;
134
140
  type TimestampStyle = 't' | 'T' | 'd' | 'D' | 'f' | 'F' | 'R';
135
141
  /**
136
- * Format a Unix timestamp (milliseconds) as a Fluxer/Discord timestamp mention.
142
+ * Format a Unix timestamp (milliseconds) as a Fluxer timestamp mention.
137
143
  * @param timestampMs - Unix timestamp in milliseconds
138
144
  * @param style - Optional display style (`t`, `T`, `d`, `D`, `f`, `F`, `R`)
139
145
  */
@@ -184,7 +190,6 @@ declare const MessageFlagsBits: {
184
190
  readonly SuppressEmbeds: bigint;
185
191
  readonly SuppressNotifications: bigint;
186
192
  readonly VoiceMessage: bigint;
187
- readonly CompactAttachments: bigint;
188
193
  };
189
194
  type MessageFlagsString = keyof typeof MessageFlagsBits;
190
195
  type MessageFlagsResolvable = BitFieldResolvable<MessageFlagsString>;
@@ -193,7 +198,6 @@ declare class MessageFlagsBitField extends BitField<MessageFlagsString> {
193
198
  readonly SuppressEmbeds: bigint;
194
199
  readonly SuppressNotifications: bigint;
195
200
  readonly VoiceMessage: bigint;
196
- readonly CompactAttachments: bigint;
197
201
  };
198
202
  }
199
203
 
package/dist/index.js CHANGED
@@ -225,7 +225,13 @@ var ErrorCodes = {
225
225
  /** Operation requires a personal-notes channel (or wrong channel type). */
226
226
  InvalidChannelType: "INVALID_CHANNEL_TYPE",
227
227
  /** Gateway opcode payload missing required fields. */
228
- InvalidGatewayRequest: "INVALID_GATEWAY_REQUEST"
228
+ InvalidGatewayRequest: "INVALID_GATEWAY_REQUEST",
229
+ /** Collector ended because its time limit elapsed. */
230
+ CollectorIdle: "COLLECTOR_IDLE",
231
+ /** Collector ended because its max item limit was reached. */
232
+ CollectorMax: "COLLECTOR_MAX",
233
+ /** Collector requires `time` and/or `max`. */
234
+ CollectorOptionsRequired: "COLLECTOR_OPTIONS_REQUIRED"
229
235
  };
230
236
 
231
237
  // src/Errors/FluxerError.ts
@@ -473,8 +479,7 @@ var import_types2 = require("@fluxerjs/types");
473
479
  var MessageFlagsBits = {
474
480
  SuppressEmbeds: BigInt(import_types2.MessageFlags.SuppressEmbeds),
475
481
  SuppressNotifications: BigInt(import_types2.MessageFlags.SuppressNotifications),
476
- VoiceMessage: BigInt(import_types2.MessageFlags.VoiceMessage),
477
- CompactAttachments: BigInt(import_types2.MessageFlags.CompactAttachments)
482
+ VoiceMessage: BigInt(import_types2.MessageFlags.VoiceMessage)
478
483
  };
479
484
  var MessageFlagsBitField = class extends BitField {
480
485
  static Flags = MessageFlagsBits;
package/dist/index.mjs CHANGED
@@ -169,7 +169,13 @@ var ErrorCodes = {
169
169
  /** Operation requires a personal-notes channel (or wrong channel type). */
170
170
  InvalidChannelType: "INVALID_CHANNEL_TYPE",
171
171
  /** Gateway opcode payload missing required fields. */
172
- InvalidGatewayRequest: "INVALID_GATEWAY_REQUEST"
172
+ InvalidGatewayRequest: "INVALID_GATEWAY_REQUEST",
173
+ /** Collector ended because its time limit elapsed. */
174
+ CollectorIdle: "COLLECTOR_IDLE",
175
+ /** Collector ended because its max item limit was reached. */
176
+ CollectorMax: "COLLECTOR_MAX",
177
+ /** Collector requires `time` and/or `max`. */
178
+ CollectorOptionsRequired: "COLLECTOR_OPTIONS_REQUIRED"
173
179
  };
174
180
 
175
181
  // src/Errors/FluxerError.ts
@@ -417,8 +423,7 @@ import { MessageFlags } from "@fluxerjs/types";
417
423
  var MessageFlagsBits = {
418
424
  SuppressEmbeds: BigInt(MessageFlags.SuppressEmbeds),
419
425
  SuppressNotifications: BigInt(MessageFlags.SuppressNotifications),
420
- VoiceMessage: BigInt(MessageFlags.VoiceMessage),
421
- CompactAttachments: BigInt(MessageFlags.CompactAttachments)
426
+ VoiceMessage: BigInt(MessageFlags.VoiceMessage)
422
427
  };
423
428
  var MessageFlagsBitField = class extends BitField {
424
429
  static Flags = MessageFlagsBits;
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "publishConfig": {
4
4
  "access": "public"
5
5
  },
6
- "version": "2.2.0",
6
+ "version": "3.0.0",
7
7
  "description": "Shared utilities for @fluxerjs/core",
8
8
  "repository": {
9
9
  "type": "git",
@@ -11,7 +11,7 @@
11
11
  "directory": "packages/util"
12
12
  },
13
13
  "bugs": "https://github.com/fluxerjs/core/issues",
14
- "homepage": "https://fluxerjs.blstmo.com",
14
+ "homepage": "https://fluxer.js.org",
15
15
  "keywords": [
16
16
  "fluxer",
17
17
  "util",
@@ -20,7 +20,7 @@
20
20
  ],
21
21
  "license": "Apache-2.0",
22
22
  "dependencies": {
23
- "@fluxerjs/types": "2.2.0"
23
+ "@fluxerjs/types": "3.0.0"
24
24
  },
25
25
  "sideEffects": false,
26
26
  "main": "./dist/index.js",