@elara-services/tickets 4.3.3 → 4.3.4

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.
Files changed (2) hide show
  1. package/lib/util.js +2 -2
  2. package/package.json +1 -1
package/lib/util.js CHANGED
@@ -323,9 +323,9 @@ exports.hasTicket = ({ userId, guild, token, prefix } = {}) => {
323
323
  return guild.channels.cache.filter((c) => [0, "GUILD_TEXT"].includes(c.type) && c.topic && exports.code(c.topic.split("ID: ")[1], "d", token) === userId && c.name?.match?.(new RegExp(prefix, "gi"))).size ? true : false;
324
324
  };
325
325
 
326
- exports.embed = (content, { color, title, guild, footer, author, str } = {}) => ({
326
+ exports.embed = (content, { color, title, guild, footer, author, str, description } = {}) => ({
327
327
  title: title || str("INFO"),
328
- description: content,
328
+ description: content || description,
329
329
  color: color || 0xff0000,
330
330
  timestamp: new Date(),
331
331
  footer,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@elara-services/tickets",
3
- "version": "4.3.3",
3
+ "version": "4.3.4",
4
4
  "description": "Helper for tickets",
5
5
  "main": "index.js",
6
6
  "types": "index.d.ts",