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

9.7.1 • 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);
});

Package Sidebar

Install

npm i @reciple/core

Weekly Downloads

15

Version

9.7.1

License

GPL-3.0

Unpacked Size

545 kB

Total Files

6

Last publish

Collaborators

  • catplusplus