This package has been deprecated

Author message:

As of the latest discord.js version, you can do this with raw Klasa by setting the emitter to 'ws' in an event handler

@kcp/raw-events
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

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.

Readme

Keywords

none

Package Sidebar

Install

npm i @kcp/raw-events

Weekly Downloads

2

Version

1.0.1

License

MIT

Unpacked Size

17.4 kB

Total Files

15

Last publish

Collaborators

  • vladfrangu
  • kingdgrizzle