🚀 DAY 5 OF LAUNCH WEEK:Introducing Webhook Events for Alert Changes.Learn more →
Socket
Book a DemoInstallSign in
Socket

@kcp/raw-events

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@kcp/raw-events

A simple Raw Event Plugin that adds a simpler way to tap into raw events using klasa

latest
Source
npmnpm
Version
1.0.1
Version published
Maintainers
1
Created
Source

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

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

# If you use yarn
yarn add @kcp/raw-events
  • 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);
  • 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
    }
}
  • ???... Enjoy!

License

This project is under the MIT license.

FAQs

Package last updated on 17 Apr 2019

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts