A simple Klasa plugin which allows you to handle raw events with ease.
- Install the plugin.
npm i @kcp/raw-events
# If you use yarn
yarn add @kcp/raw-events- Use
@kcp/raw-eventsin 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);- Create a new
raw-eventin yourrawEventsfolder.
const { RawEvent } = require("klasa-raw-events");
module.exports = class extends RawEvent {
run(data) {
// Your Code Here
}
}- ???... Enjoy!
This project is under the MIT license.
