Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

discord-buttons

Package Overview
Dependencies
Maintainers
1
Versions
17
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

discord-buttons - npm Package Compare versions

Comparing version 3.2.0 to 3.2.1

2

package.json
{
"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;

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc