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

8.4.2 • Public • Published



About

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

Usage

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

const client = new RecipleClient({
    token: 'MTExIHlvdSEgpHJpZWQgMTEx.O5rKAA.dQw4w9WgXxQ_wpV-gGg4PSk_bm8',
    client: {
        intents: [
            'Guilds',
            'GuildMessages',
            'MessageContent'
        ]
    }
});

await client.login();

client.commands.add(
    new SlashCommandBuilder()
        .setName('ping')
        .setDescription('Ping bot')
        .setExecute(async ({ interaction }) => 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

101

Version

8.4.2

License

GPL-3.0

Unpacked Size

307 kB

Total Files

88

Last publish

Collaborators

  • catplusplus