Package Exports
- @gcommands/components
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@gcommands/components) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
OFFICIAL ADDON FOR GCOMMANDS
Installation
Install with npm / yarn / pnpm:
npm install @gcommands/components
yarn add @gcommands/components
pnpm add @gcommands/componentsconst { GComponents } = require("@gcommands/components");
const { Client } = require("discord.js");
const { join } = require("path");
const client = new Client();
new GComponents(client, { dir: join(__dirname, "components") });
client.login("token");