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 2.3.3 to 2.4.1

2

package.json
{
"name": "discord-buttons",
"version": "2.3.3",
"version": "2.4.1",
"description": "Discord.js buttons",

@@ -5,0 +5,0 @@ "main": "src/index.js",

@@ -94,3 +94,3 @@ const { sendAPICallback } = require('./APIMessage');

const raw = await this.webhook.fetchMessage('@original');
return this.channel ? this.channel.messages.add(raw) : undefined ?? raw;
return this.channel ? this.channel.messages.add(raw) : raw;
}

@@ -101,3 +101,3 @@

const raw = await this.webhook.editMessage('@original', content, options);
return this.channel ? this.channel.messages.add(raw) : undefined ?? raw;
return this.channel ? this.channel.messages.add(raw) : raw;
}

@@ -104,0 +104,0 @@

@@ -33,4 +33,4 @@ const { WebhookClient } = require('discord.js');

const data = await this.client.api.webhooks(this.id, this.token).messages(message).get();
return this.client.channels ? (this.client.channels.cache.get(data.channel_id) ? this.client.channels.cache.get(data.channel_id).messages.add(data, cache) : null) : undefined ?? data;
return this.client.channels ? (this.client.channels.cache.get(data.channel_id) ? this.client.channels.cache.get(data.channel_id).messages.add(data, cache) : null) : data;
}
}
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