Skip to content

quoriel/edge

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

64 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

QuorielEdge

An extended set of functions for ForgeScript, designed to optimize workflows, simplify the execution of various tasks, and support script integration and processing.

Installation

npm i github:quoriel/edge

Connection

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("...");

Interaction

module.exports = {
    name: "hello",
    type: "interactionCreate",
    code: `$ephemeral $call[greet;$username]!`
};

function greet(name) {
    return `Hello, ${name}`;
}

Structure

  • name - The interaction identifier
  • separator - Custom separator for splitting customId (default: -) (optional)
  • allowed - Array of allowed interaction types (optional)

Supported allowed

button, selectMenu, modal, autocomplete, contextMenu, activityCommand

About

An extended set of functions for ForgeScript, designed to optimize workflows, simplify the execution of various tasks, and support script integration and processing.

Resources

License

Stars

Watchers

Forks

Contributors