discord-buttons
Advanced tools
Comparing version 3.2.0 to 3.2.1
{ | ||
"name": "discord-buttons", | ||
"version": "3.2.0", | ||
"version": "3.2.1", | ||
"description": "Discord.js buttons", | ||
@@ -5,0 +5,0 @@ "main": "src/index.js", |
@@ -1,2 +0,2 @@ | ||
const { APIMessage: dAPIMessage } = require("discord.js"); | ||
const { APIMessage: dAPIMessage, MessageEmbed } = require("discord.js"); | ||
const Util = require('../Util'); | ||
@@ -14,4 +14,14 @@ const { MessageComponentTypes } = require('../Constants.js'); | ||
if (typeof (this.options.content) === 'object') { | ||
this.options = this.options.content; | ||
this.options.content = null; | ||
} | ||
super.resolveData(); | ||
if (this.options.content instanceof MessageEmbed) { | ||
this.data.embed = this.options.content; | ||
this.data.content = null; | ||
} | ||
if (this.options.flags) { | ||
@@ -111,4 +121,14 @@ this.data.flags = parseInt(this.options.flags); | ||
if (typeof (this.options.content) === 'object') { | ||
this.options = this.options.content; | ||
this.options.content = null; | ||
} | ||
super.resolveData(); | ||
if (this.options.content instanceof MessageEmbed) { | ||
this.data.embed = this.options.content; | ||
this.data.content = null; | ||
} | ||
let components = []; | ||
@@ -115,0 +135,0 @@ let hasActionRow = false; |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
56509
1163