@open-discord-bots/framework 2.0.1 → 2.0.2

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/api/main.js CHANGED
@@ -44,7 +44,7 @@ export class ODMain {
44
44
  constructor(managers, project) {
45
45
  this.project = project;
46
46
  this.versions = managers.versions;
47
- this.versions.add(ODVersion.fromString("opendiscord:api", "v2.0.1"));
47
+ this.versions.add(ODVersion.fromString("opendiscord:api", "v2.0.2"));
48
48
  this.versions.add(ODVersion.fromString("opendiscord:livestatus", "v2.0.0"));
49
49
  this.debugfile = managers.debugfile;
50
50
  this.console = managers.console;
@@ -631,7 +631,7 @@ export class ODButtonResponderInstance extends ODBaseResponderInstance {
631
631
  if (this.interaction.replied || this.interaction.deferred) {
632
632
  const sent = await this.interaction.editReply(finalMessage);
633
633
  this.ignoreResponderTimeout = true;
634
- return { success: true, message: await sent.fetch(), ephemeral: build.ephemeral };
634
+ return { success: true, message: sent, ephemeral: build.ephemeral };
635
635
  }
636
636
  else {
637
637
  const sent = await this.interaction.update(finalMessage);
@@ -972,7 +972,7 @@ export class ODDropdownResponderInstance extends ODBaseResponderInstance {
972
972
  if (this.interaction.replied || this.interaction.deferred) {
973
973
  const sent = await this.interaction.editReply(finalMessage);
974
974
  this.ignoreResponderTimeout = true;
975
- return { success: true, message: await sent.fetch(), ephemeral: build.ephemeral };
975
+ return { success: true, message: sent, ephemeral: build.ephemeral };
976
976
  }
977
977
  else {
978
978
  const sent = await this.interaction.update(finalMessage);
@@ -1313,7 +1313,7 @@ export class ODModalResponderInstance extends ODBaseResponderInstance {
1313
1313
  if (this.interaction.replied || this.interaction.deferred) {
1314
1314
  const sent = await this.interaction.editReply(finalMessage);
1315
1315
  this.ignoreResponderTimeout = true;
1316
- return { success: true, message: await sent.fetch(), ephemeral: build.ephemeral };
1316
+ return { success: true, message: sent, ephemeral: build.ephemeral };
1317
1317
  }
1318
1318
  else {
1319
1319
  const sent = await this.interaction.reply(finalMessage);
@@ -1333,7 +1333,7 @@ export class ODModalResponderInstance extends ODBaseResponderInstance {
1333
1333
  if (this.interaction.replied || this.interaction.deferred) {
1334
1334
  const sent = await this.interaction.editReply(finalMessage);
1335
1335
  this.ignoreResponderTimeout = true;
1336
- return { success: true, message: await sent.fetch(), ephemeral: build.ephemeral };
1336
+ return { success: true, message: sent, ephemeral: build.ephemeral };
1337
1337
  }
1338
1338
  else {
1339
1339
  const sent = await this.interaction.reply(finalMessage);
@@ -1505,7 +1505,7 @@ export class ODContextMenuResponderInstance extends ODBaseResponderInstance {
1505
1505
  if (this.interaction.replied || this.interaction.deferred) {
1506
1506
  const sent = await this.interaction.editReply(finalMessage);
1507
1507
  this.ignoreResponderTimeout = true;
1508
- return { success: true, message: await sent.fetch(), ephemeral: build.ephemeral };
1508
+ return { success: true, message: sent, ephemeral: build.ephemeral };
1509
1509
  }
1510
1510
  else
1511
1511
  throw new ODSystemError("Unable to update context menu interaction!");
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@open-discord-bots/framework",
3
3
  "author": "DJj123dj",
4
- "version": "2.0.1",
4
+ "version": "2.0.2",
5
5
  "description": "The core framework of the popular open-source discord bots: Open Ticket & Open Moderation.",
6
6
  "main": "dist/index.js",
7
7
  "module": "dist/index.js",