14.14.1-1.1.0 • Published 4 months ago
disapp v14.14.1-1.1.0
DisApp
An intuitive Discord framework
bun add disapp
npm add disapp
pnpm add disapp
yarn add disapp
Quick Start
// src/index.js
import { DisClient, GatewayIntentBits } from "disapp";
const client = new DisClient({
intents: [GatewayIntentBits.Guilds],
});
await client.setupCommands("src/commands/*.js");
await client.setupEvents("src/events/*.js");
await client.login("DISCORD_APP_TOKEN");
Example command
// src/commands/ping.js
import { DisCommand } from "disapp";
export default new DisCommand()
.setName("ping")
.setDescription("See the application's ping")
.setExecutable(async (interaction) => {
await interaction.reply(`${interaction.client.ws.ping}`);
});
Example event
// src/events/ready.js
import { DisEvent } from "disapp";
export default new DisEvent("ready", (client) => {
console.log(`Logged as ${client.user.username}`);
});
License
Refer to the LICENSE.
14.14.1-1.0.5
4 months ago
14.14.1-1.0.4
4 months ago
14.14.1-1.1.0
4 months ago
14.14.1-1.0.3
4 months ago
14.14.1-1.0.2
5 months ago
14.14.1-1.0.1
5 months ago
14.14.1-1.0.0
5 months ago