@zoodogood/utils 0.6.4 → 0.6.6

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.4",
4
+ "version": "0.6.6",
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
 
@@ -50,7 +50,7 @@ function CreateMessage({
50
50
  image, video, footer, timestamp
51
51
  });
52
52
 
53
- if (!isEmptyEmbed(embed)){
53
+ if (!isEmptyEmbed(embed.data)){
54
54
  message.embeds = [embed];
55
55
  }
56
56
 
@@ -81,7 +81,7 @@ function SimplifyComponents(data){
81
81
  return [];
82
82
 
83
83
  const isComponent = (component) => "type" in component;
84
- const isActionRow = (component) => component instanceof Array && isComponent(component.at(0)) || component instanceof MessageActionRow;
84
+ const isActionRow = (component) => component instanceof Array && isComponent(component.at(0)) || component instanceof ActionRow;
85
85
  const isComponents = (component) => component.length && isActionRow(component.at(0));
86
86
 
87
87
  const argumentType = [