akf-cord

1.0.2 • Public • Published

akf-cord

A lightweight discord API wrapper. Only requires ws.

Usage:

const cord = require('akf-cord');

const client = new cord.Client('token');

client.on('ready', () => {
    console.log('Ready!');
});

client.on("interaction", async interaction => {
    if (!interaction.member) return;
    // if (interaction.data.name == "ping")
    interaction.reply({
        embeds: [
            {
                title: "Hello!",
                description: "This is a test embed!",
                image: {
                    url: cord.avatarURL(interaction.member.user, 128, "png")
                }
            }
        ]
    });
});

client.login();

Readme

Keywords

Package Sidebar

Install

npm i akf-cord

Weekly Downloads

4

Version

1.0.2

License

GPL-3.0-or-later

Unpacked Size

4.93 kB

Total Files

5

Last publish

Collaborators

  • akif9748