@gcommands/components

Component handler for discord.js and gcommands

Usage no npm install needed!

<script type="module">
  import gcommandsComponents from 'https://cdn.skypack.dev/@gcommands/components';
</script>

README

GComponents

NPM version NPM downloads

NPM Banner


OFFICIAL ADDON FOR GCOMMANDS

Installation

Install with npm / yarn / pnpm:

npm install @gcommands/components
yarn add @gcommands/components
pnpm add @gcommands/components
const { 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");