autocode-djs

0.1.0 • Public • Published

Autocode Discord.js "Support"

This module allows you to use Discord.js code! Well... sort of. This module doesn't have all of the Discord.js API because of Autocode limitations. (You can check what are available by console logging the event.)

Usage

Currently, CommandInteraction, ButtonInteraction and SelectMenuInteraction are only supported.

const { CommandInteractionEvent } = require('autocode-djs');

await CommandInteractionEvent(context, lib, async (interaction) => {
  await interaction.reply({ content: 'Hello, world!' });
});

NOTE

You'll have to use await for every single function, I don't know how ill fix this currently.

/autocode-djs/

    Package Sidebar

    Install

    npm i autocode-djs

    Weekly Downloads

    1

    Version

    0.1.0

    License

    MIT

    Unpacked Size

    19.5 kB

    Total Files

    19

    Last publish

    Collaborators

    • foxreisxd