Research
Security News
Quasar RAT Disguised as an npm Package for Detecting Vulnerabilities in Ethereum Smart Contracts
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
djs-messagecollector
Advanced tools
This is a npm package made so you can set up message collectors in discord.js easier and simplier!
This is a npm package that is made for the sole purpose of simplifying Message Collectors for you! Message Collectors are what you use to collect message in discord.js
npm i djs-messagecollector
Or
yarn add djs-messagecollector
const MessageCollector = require('djs-messagecollector');
// then you create a new MessageCollector Class <There are default values.>
const collector = new MessageCollector({ message: Discord.Message }) // read more about the paramaters of this class below. this is using all of the default values.
// start your collector
const collect = collector.start();
collector.on('collect', message => { // The message that was collected.
console.log(message.content) // logging the message content...
})
collector.on('end', (collected, reason) => { // collected => the collected message, reason => the reason for the collectors end.
console.log(collected);
})
collector.on('dispose', message => { // The message that was disposed of.
console.log(message)
})
collector.resetTimer({ time: 60000, idle: 10000}) // resets the collectors timer read more on the djs guide https://discord.js.org/#/docs/main/master/class/MessageCollector?scrollTo=resetTimer
collector.stop(`Because i don't want it to run anymore. <optional>`) // ends the collecter and emits the 'end' event
collector.dispose(Discord.Message) // Disposes of a message and emits the 'dispose' event.
MessageCollector Class
Discord.Message
Discord.TextChannel | Discord.TextChannel
start()
: Starts the message collector.stop(reason<optional>)
: Stops the message collector.dispose(message: Discord.Message)
: Disposes of a message and emits the dispose
event.on(event: "collect" | "end" | "dispose", callback(paramaters))
: listenes for a particular event.resetTimer(Options: {time: number, idle: number})
: Resets the collectors timer.FAQs
This is a npm package made so you can set up message collectors in discord.js easier and simplier!
The npm package djs-messagecollector receives a total of 0 weekly downloads. As such, djs-messagecollector popularity was classified as not popular.
We found that djs-messagecollector 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.
Research
Security News
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
Security News
Research
A supply chain attack on Rspack's npm packages injected cryptomining malware, potentially impacting thousands of developers.
Research
Security News
Socket researchers discovered a malware campaign on npm delivering the Skuld infostealer via typosquatted packages, exposing sensitive data.