@simpledjs/framework
TypeScript icon, indicating that this package has built-in type declarations

0.7.0 • Public • Published

Discord Oversimplified Logo


Discord Server NPM Version NPM Downloads

About

A framework built with discord.js and the sapphire framework to make discord bot development easier

Installation

npm install @simpledjs/framework
yarn add @simpledjs/framework
pnpm add @simpledjs/framework

Example usage

Install the required dependencies:

npm install @simpledjs/framework
yarn add @simpledjs/framework
pnpm add @simpledjs/framework

Making a client:

const SDJS = require("@simpledjs/framework");

// Automatically logs in the client
const client = new SDJS.Client({
	intents: [], // required
	token: "BOT_TOKEN" // required
});

Making a command in the same file as the client:

client.command(
	"example",
	`
	content.set("content text");
	embed();
	embed.description("embed");
	reply(true);
`
);

Making a command in a seperate directory:

module.exports = {
	trigger: "example",
	code: `
		content.set("content text");
		embed();
		embed.description("embed");
		reply(true);
	`
};

Links

Contributing

Before you create an issue, please take a look if it has already been reported or suggested, also check the latest documentation.

Help

If you are having problems with simple.djs, you are welcome to join the simple.djs Server

Package Sidebar

Install

npm i @simpledjs/framework

Weekly Downloads

1

Version

0.7.0

License

MIT

Unpacked Size

66.1 kB

Total Files

61

Last publish

Collaborators

  • jaronz