@kcp/channels-gateway
TypeScript icon, indicating that this package has built-in type declarations

1.0.1 • Public • Published

NPM version NPM downloads Install Size Build Status

NPM info

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.

Readme

Keywords

none

Package Sidebar

Install

npm i @kcp/channels-gateway

Weekly Downloads

18

Version

1.0.1

License

MIT

Unpacked Size

22.4 kB

Total Files

17

Last publish

Collaborators

  • vladfrangu
  • kingdgrizzle