reisxd / autocode-djs

Autocode Discord.js "Support"

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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.

About

Autocode Discord.js "Support"

License:MIT License


Languages

Language:JavaScript 100.0%