/raw-events

Simple plugin to handle raw events with ease.

Primary LanguageTypeScriptMIT LicenseMIT


NPM version NPM downloads Install Size Build Status

NPM info

Raw Events

A simple Klasa plugin which allows you to handle raw events with ease.

How To Use

  1. Install the plugin.
npm i @kcp/raw-events

# If you use yarn
yarn add @kcp/raw-events
  1. Use @kcp/raw-events in your client.
const { Client } = require("klasa");
Client.use(require("@kcp/raw-events"));

If you use TypeScript

import { Client } from 'klasa';
import { Client as RawEventsClient } from '@kcp/raw-events';

Client.use(RawEventsClient);
  1. Create a new raw-event in your rawEvents folder.
const { RawEvent } = require("klasa-raw-events");

module.exports = class extends RawEvent {
    run(data) {
        // Your Code Here
    }
}
  1. ???... Enjoy!

License

This project is under the MIT license.