seyfert 2.2.1-dev-12681581510.0 → 2.2.1-dev-12726380923.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.
@@ -88,13 +88,13 @@ class BaseInteraction extends DiscordBase_1.DiscordBase {
88
88
  if ('attachments' in body) {
89
89
  payload.attachments =
90
90
  body.attachments?.map((x, i) => ({
91
- id: i,
91
+ id: x.id ?? i.toString(),
92
92
  ...(0, builders_1.resolveAttachment)(x),
93
93
  })) ?? undefined;
94
94
  }
95
95
  else if (files?.length) {
96
- payload.attachments = files?.map(({ filename }, id) => ({
97
- id,
96
+ payload.attachments = files?.map(({ filename }, i) => ({
97
+ id: i.toString(),
98
98
  filename,
99
99
  }));
100
100
  }
@@ -1,4 +1,4 @@
1
- import { type AllChannels, Embed, ReturnCache } from '..';
1
+ import { type AllChannels, Embed, type ReturnCache } from '..';
2
2
  import type { ListenerOptions } from '../builders';
3
3
  import { type GuildMemberStructure, type GuildStructure, type MessageStructure, type PollStructure, type UserStructure, type WebhookMessageStructure, type WebhookStructure } from '../client/transformers';
4
4
  import type { UsingClient } from '../commands';
@@ -196,13 +196,13 @@ class MessagesMethods extends DiscordBase_1.DiscordBase {
196
196
  if ('attachments' in body) {
197
197
  payload.attachments =
198
198
  body.attachments?.map((x, i) => ({
199
- id: i,
199
+ id: i.toString(),
200
200
  ...(0, builders_1.resolveAttachment)(x),
201
201
  })) ?? undefined;
202
202
  }
203
203
  else if (files?.length) {
204
- payload.attachments = files?.map(({ filename }, id) => ({
205
- id,
204
+ payload.attachments = files?.map(({ filename }, i) => ({
205
+ id: i.toString(),
206
206
  filename,
207
207
  }));
208
208
  }
@@ -213,7 +213,7 @@ export type APIMessageReferenceSend = AddUndefinedToPossiblyUndefinedPropertiesO
213
213
  /**
214
214
  * https://discord.com/developers/docs/resources/message#attachment-object
215
215
  */
216
- export type RESTAPIAttachment = Partial<Pick<APIAttachment, 'description' | 'duration_secs' | 'filename' | 'title' | 'waveform'>>;
216
+ export type RESTAPIAttachment = Partial<Pick<APIAttachment, 'description' | 'duration_secs' | 'filename' | 'title' | 'waveform' | 'id'>>;
217
217
  /**
218
218
  * https://discord.com/developers/docs/resources/channel#create-message
219
219
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "seyfert",
3
- "version": "2.2.1-dev-12681581510.0",
3
+ "version": "2.2.1-dev-12726380923.0",
4
4
  "description": "The most advanced framework for discord bots",
5
5
  "main": "./lib/index.js",
6
6
  "module": "./lib/index.js",
@@ -25,10 +25,10 @@
25
25
  "@changesets/cli": "^2.27.11",
26
26
  "@commitlint/cli": "^19.6.1",
27
27
  "@commitlint/config-conventional": "^19.6.0",
28
- "@types/node": "^22.10.2",
28
+ "@types/node": "^22.10.5",
29
29
  "husky": "^9.1.7",
30
30
  "lint-staged": "^15.3.0",
31
- "typescript": "^5.7.2",
31
+ "typescript": "^5.7.3",
32
32
  "vitest": "^2.1.8"
33
33
  },
34
34
  "homepage": "https://seyfert.dev",