1.0.1 • Published 5 years ago

@kcp/channels-gateway v1.0.1

Weekly downloads
3
License
MIT
Repository
github
Last release
5 years ago

Channel Gateways

A simple Klasa plugin which adds settings to all your channels

How To Use

  1. Install the plugin.
npm i @kcp/channels-gateway

# If you use yarn
yarn add @kcp/channels-gateway
  1. 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");
  1. ???... 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.