Channel Gateways
A simple Klasa plugin which adds settings to all your channels
How To Use
- Install the plugin.
npm i @kcp/channels-gateway
yarn add @kcp/channels-gateway
- Use
@kcp/channels-gateway
in your client.
const { Client } = require("klasa");
Client.use(require("@kcp/channels-gateway"));
new Client({ channelGateways: { text: true, category: false } }).login("Your Beautiful Token");
If you use TypeScript
import { Client } from 'klasa';
import { Client as ChannelsGatewayClient } from '@kcp/channels-gateway';
Client.use(ChannelsGatewayClient);
new Client({ channelGateways: { text: true, category: false } }).login("Your Beautiful Token");
- ???... Enjoy!
Tips
- By default, all gateways are enabled. If you want to disable any of them, make sure you specify the client option
- You can disable and enable gateways at any point in time with 0 data loss
License
This project is under the MIT license.