@zoodogood/utils 0.6.5 → 0.7.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/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@zoodogood/utils",
3
3
  "type": "module",
4
- "version": "0.6.5",
4
+ "version": "0.7.0",
5
5
  "description": "",
6
6
  "main": "index.js",
7
7
  "homepage": "https://zoodogood.github.io/utils",
@@ -1,4 +1,4 @@
1
- import { EmbedBuilder, ModalBuilder, resolveColor } from 'discord.js';
1
+ import { EmbedBuilder, ModalBuilder, resolveColor, ActionRow } from 'discord.js';
2
2
  import { ComponentType } from 'discord-api-types/v10';
3
3
 
4
4
 
@@ -32,7 +32,7 @@ function CreateMessage({
32
32
  content,
33
33
  title, url, author, thumbnail, description, color, fields, image, video, footer, timestamp,
34
34
  ephemeral, fetchReply,
35
- components, files
35
+ components, files, reference
36
36
 
37
37
  }){
38
38
  const message = {};
@@ -65,6 +65,10 @@ function CreateMessage({
65
65
  message.ephemeral = ephemeral;
66
66
  message.fetchReply = fetchReply;
67
67
 
68
+ message.reply = {
69
+ messageReference: reference
70
+ };
71
+
68
72
  return message;
69
73
  }
70
74
 
@@ -81,7 +85,7 @@ function SimplifyComponents(data){
81
85
  return [];
82
86
 
83
87
  const isComponent = (component) => "type" in component;
84
- const isActionRow = (component) => component instanceof Array && isComponent(component.at(0)) || component instanceof MessageActionRow;
88
+ const isActionRow = (component) => component instanceof Array && isComponent(component.at(0)) || component instanceof ActionRow;
85
89
  const isComponents = (component) => component.length && isActionRow(component.at(0));
86
90
 
87
91
  const argumentType = [