akf-cord
v1.0.2
Published
A lightweight discord API wrapper.
Downloads
7
Readme
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();