0.0.28 • Published 4 years ago

disca v0.0.28

Weekly downloads
3
License
MIT
Repository
github
Last release
4 years ago

Logo

disca

A Discord.JS Project Builder


Discord Banner

NPM Downloads License Versiob


Installation

npm i disca -g

Usage

Creating A Project

disca

And complete the following prompts.

TypeScript

Disca does support TypeScript, but it requires the NPM package "typescript" to be installed globally

npm i typescript -g

Documentation

All Documentation Is In JavaScript

Client

@param config?: ClientConfig

ClientConfig

@param prefix?: string

Command Handler

@param client: Client
Basic Example
const commands = new CommandHandler(client);

commands.RegisterCommand({
  name: "ping",
  aliases: [],
  permissions: {
    bot: ["SEND_MESSAGES"],
    user: [],
  },
  execute: (message, client, args) => {
    message.channel.send("Pong!");
  },
});
Advanced Example
const fs = require("fs");

const commands = new CommandHandler(client);

const commandFiles = fs.readdirSync("src/Commands");

for (const file of commandFiles) {
  const command = require(`../Commands/${file}`);
  commands.RegisterCommand(command);
}

Command

@param name: string
@param aliases: string[]
@param permissions: CommandPermissions
@param execute: function(message, client, args)

CommandPermisssions

@param bot: string[]
@param user: string[]
0.0.28

4 years ago

0.0.272

4 years ago

0.0.27111

4 years ago

0.0.27112

4 years ago

0.0.2711

4 years ago

0.0.271

4 years ago

0.0.27

4 years ago

0.0.2611

4 years ago

0.0.262

4 years ago

0.0.261

4 years ago

0.0.26

4 years ago

0.0.252

4 years ago

0.0.251

4 years ago

0.0.25

4 years ago

0.0.24

4 years ago

0.0.23

4 years ago

0.0.21

4 years ago

0.0.22

4 years ago

0.0.2

4 years ago

0.0.153

4 years ago

0.0.1521

4 years ago

0.0.152

4 years ago

0.0.151

4 years ago

0.0.15

4 years ago

0.0.142

4 years ago

0.0.143

4 years ago

0.0.14

4 years ago

0.0.141

4 years ago

0.0.132

4 years ago

0.0.13

4 years ago

0.0.12

4 years ago

0.0.11

4 years ago

0.0.1

4 years ago