Security News
Fluent Assertions Faces Backlash After Abandoning Open Source Licensing
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
djs-confirmation
Advanced tools
Confirmations with reactions or buttons in an easy way.
Using Node.js require()
const confirmation = require("djs-confirmations");
Using ES6 imports
import confirmation from "djs-confirmations";
////// MAKE SURE YOU DEFINED THE PACKAGE
const Discord = require("discord.js");
const client = new Discord.Client({ intents: [Discord.Intents.FLAGS.GUILDS, Discord.Intents.FLAGS.GUILD_MESSAGES] });
client.on("ready", () => console.log(`I am ready to make cool button confirmations.`));
client.on("message", message => {
if (message.author.bot) return;
if (message.content == "confirm") {
const returned = new confirmation.ButtonConfirmation(
message.channel /*channel to send the message*/,
messageOptions /*message's options (MessageOptions)*/,
message.author.id /*User to click the button*/,
).start();
let interaction = returned[1];
if (returned[0]) {
interaction.reply("You selected true");
} else {
interaction.reply("You selected false");
}
}
});
client.login("super secret token");
Find em out with the typings or just check the internal codes at https://npm.runkit.com/djs-confirmations I'll do this later bye :D
FAQs
Confirmations with reactions or buttons in an easy way.
The npm package djs-confirmation receives a total of 1 weekly downloads. As such, djs-confirmation popularity was classified as not popular.
We found that djs-confirmation demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
Research
Security News
Socket researchers uncover the risks of a malicious Python package targeting Discord developers.
Security News
The UK is proposing a bold ban on ransomware payments by public entities to disrupt cybercrime, protect critical services, and lead global cybersecurity efforts.