An extended set of functions for ForgeScript, designed to optimize workflows, simplify the execution of various tasks, and support script integration and processing.
npm i github:quoriel/edge
const { ForgeClient } = require("@tryforge/forgescript");
const { QuorielEdge } = require("@quoriel/edge");
const edge = new QuorielEdge({
events: [
"interactionCreate"
]
});
const client = new ForgeClient({
extensions: [
edge
]
});
// Loading interactions.
edge.commands.load("interactions");
client.login("...");The same works from TypeScript, with full type information out of the box:
import { ForgeClient } from "@tryforge/forgescript";
import { QuorielEdge } from "@quoriel/edge";
const edge = new QuorielEdge({
events: ["interactionCreate"]
});
const client = new ForgeClient({ extensions: [edge] });
edge.commands.load("interactions");
client.login("...");QuorielEdge is written in TypeScript and ships its own declaration files - no
@types package is needed. require() from JavaScript and import from
TypeScript both resolve to the same compiled dist/ output, so both are
fully supported.
- Configure the class to use cache functions View documentation
- Events and commands with advanced routing and filtering View documentation
- Optional features that extend ForgeScript behavior View documentation
- Define JSON schemas to auto-fill missing environment data View documentation