@reciple/core
TypeScript icon, indicating that this package has built-in type declarations

9.1.0 • Public • Published



About

@reciple/core contains the core components of Reciple such as the extended Discord.js Client and command builders.

Usage

// @ts-check
import { RecipleClient, SlashCommandBuilder } from '@reciple/core';

const client = new RecipleClient({
    token: 'YOUR_TOKEN',
    client: {
        intents: ['Guilds']
    }
});

await client.login();

client.commands?.add(
    new SlashCommandBuilder()
        .setName('ping')
        .setDescription('Replies with pong!')
        .setExecute(async ({ interaction }) => {
            await interaction.reply('Pong!');
        }),
)

await client.commands?.registerApplicationCommands();

client.on('interactionCreate', async interaction => {
    if (interaction.isChatInputCommand()) await client.commands?.execute(interaction);
});

Dependents (1)

Package Sidebar

Install

npm i @reciple/core

Weekly Downloads

276

Version

9.1.0

License

GPL-3.0

Unpacked Size

337 kB

Total Files

87

Last publish

Collaborators

  • catplusplus