UNPKG

v11-discord.js

Version:

A powerful library for interacting with the Discord API - patched by molo#7947

24 lines (17 loc) 513 B
/* ABOUT ACTIONS Actions are similar to WebSocket Packet Handlers, but since introducing the REST API methods, in order to prevent rewriting code to handle data, "actions" have been introduced. They're basically what Packet Handlers used to be but they're strictly for manipulating data and making sure that WebSocket events don't clash with REST methods. */ class GenericAction { constructor(client) { this.client = client; } handle(data) { return data; } } module.exports = GenericAction;