@darkcord/collectors
TypeScript icon, indicating that this package has built-in type declarations

1.0.5 • Public • Published

Darkcord Collectors

Example

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/

    Package Sidebar

    Install

    npm i @darkcord/collectors

    Weekly Downloads

    5

    Version

    1.0.5

    License

    MIT

    Unpacked Size

    35.4 kB

    Total Files

    10

    Last publish

    Collaborators

    • lrd_7
    • niskii