GlueHandler - shysolocup/noscord.js GitHub Wiki
handles Discord.JS-tied events and acts as a middle-man between Discord.JS, the client, and the developer
|
|
JS |
client._handler.init(
name = ["messageReply", "reply"], // names of the event
func = async function (...args) { // formatting for types and stuff
let types = this.types;
let msg = new types.Message;
await msg.apply(...args);
return [msg, msg.replier];
},
glue = "messageCreate", // what discord.js event it's tied to
term = function(ctx) { // specific action that triggers the event
return !!ctx.reference;
}
); |
🛈 client |
🛈 init() |
🛈 types | |
🛈 _base |