seyfert 3.2.7-dev-18548619376.0 → 3.2.7-dev-18548837005.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,7 +88,12 @@ class BaseInteraction extends DiscordBase_1.DiscordBase {
88
88
  if (Array.isArray(body.attachments)) {
89
89
  payload.attachments = body.attachments.map((x, i) => {
90
90
  if (x instanceof builders_1.Attachment) {
91
- return x.toJSON();
91
+ return {
92
+ id: x.id ?? i.toString(),
93
+ title: x.title,
94
+ description: x.description,
95
+ filename: x.filename,
96
+ };
92
97
  }
93
98
  return {
94
99
  id: x.id ?? i.toString(),
@@ -217,7 +217,12 @@ class MessagesMethods extends DiscordBase_1.DiscordBase {
217
217
  payload.attachments =
218
218
  body.attachments?.map((x, i) => {
219
219
  if (x instanceof builders_1.Attachment) {
220
- return x.toJSON();
220
+ return {
221
+ id: x.id ?? i.toString(),
222
+ title: x.title,
223
+ description: x.description,
224
+ filename: x.filename,
225
+ };
221
226
  }
222
227
  return {
223
228
  id: i.toString(),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "seyfert",
3
- "version": "3.2.7-dev-18548619376.0",
3
+ "version": "3.2.7-dev-18548837005.0",
4
4
  "description": "The most advanced framework for discord bots",
5
5
  "main": "./lib/index.js",
6
6
  "module": "./lib/index.js",