import { Client } from "darkcord";
import { CollectorPlugin } from "@darkcord/collectors";
const client = new Client("TOKEN", {
gateway: {
intents: [YOUR_INTENTS]
},
plugins: [CollectorPlugin]
});
client.on("messageCreate", (message) => {
if (message.content === "!reactions") {
const collector = message.createReactionCollector();
collector.on("collect", collected => {
console.log(collected.reaction);
});
}
})
client.connect();
@darkcord/collectors
1.0.5 • Public • PublishedPackage Sidebar
Install
npm i @darkcord/collectors
Repository
Weekly Downloads
2
Version
1.0.5
License
MIT
Unpacked Size
35.4 kB
Total Files
10