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("...");module.exports = {
name: "hello",
type: "interactionCreate",
code: `$ephemeral $call[greet;$username]!`
};
function greet(name) {
return `Hello, ${name}`;
}- name - The interaction identifier
- separator - Custom separator for splitting customId (default:
-) (optional) - allowed - Array of allowed interaction types (optional)
button, selectMenu, modal, autocomplete, contextMenu, activityCommand