@shadow/klasa-textchannel-master-gateway

Klasa TextChannel Gateway: a simple plugin for the klasa bot framework that adds an efficient per-textchannel settings gateway.

Usage no npm install needed!

<script type="module">
  import shadowKlasaTextchannelMasterGateway from 'https://cdn.skypack.dev/@shadow/klasa-textchannel-master-gateway';
</script>

README

this is just an updated version of the klasa-textchannel-gateway, you can find the orginal Here

klasa-textchannel-gateway

Simple plugin to manage an efficient per-textchannel settings gateway.

Note

This package isn't maintained, this package won't also work with news channels.

Installation

# NPM
$ npm install --save @shadow/klasa-textchannel-master-gateway

Setup

const { Client } = require('klasa');

Client.use(require('@shadow/klasa-textchannel-master-gateway'));

// Modifying the Schema
Client.defaultTextChannelSchema
    .add('experience', 'integer', { default: 0 })
    .add('level', 'integer', { default: 0 });