@zoodogood/utils 0.7.0 → 0.7.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/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@zoodogood/utils",
3
3
  "type": "module",
4
- "version": "0.7.0",
4
+ "version": "0.7.2",
5
5
  "description": "",
6
6
  "main": "index.js",
7
7
  "homepage": "https://zoodogood.github.io/utils",
@@ -58,6 +58,11 @@ function CreateMessage({
58
58
  message.files = files;
59
59
  }
60
60
 
61
+ if (reference)
62
+ message.reply = {
63
+ messageReference: reference
64
+ }
65
+
61
66
  message.components = components ? SimplifyComponents(components) : null;
62
67
 
63
68
 
@@ -65,9 +70,7 @@ function CreateMessage({
65
70
  message.ephemeral = ephemeral;
66
71
  message.fetchReply = fetchReply;
67
72
 
68
- message.reply = {
69
- messageReference: reference
70
- };
73
+
71
74
 
72
75
  return message;
73
76
  }
@@ -25,7 +25,7 @@ class CustomCollector {
25
25
  this.handle(handler);
26
26
  }
27
27
 
28
- handle(){
28
+ handle(handler){
29
29
  this.end();
30
30
 
31
31
  this.#callback = handler;