@flcik/flick.js
v3.1.4
Published
Full-featured client SDK for the Flick platform slash commands, components, collectors, webhooks, sharding and more.
Readme
flick.js
Full-featured JavaScript SDK for the Flick platform. Build bots, handle slash commands, send embeds, manage servers and more.
Install
npm install flick.jsQuick start
const { FlickClient, GatewayIntentBits } = require('flick.js');
const client = new FlickClient({
intents: [
GatewayIntentBits.Guilds,
GatewayIntentBits.GuildMessages,
GatewayIntentBits.MessageContent,
],
});
client.on('ready', () => {
console.log(`Logged in as ${client.user.username}!`);
});
client.on('messageCreate', (msg) => {
if (msg.content === '!ping') {
msg.reply('Pong!');
}
});
client.login('YOUR_BOT_TOKEN');Slash commands
const { SlashCommandBuilder, EmbedBuilder } = require('flick.js');
client.command('hello', async (interaction) => {
const embed = new EmbedBuilder()
.setTitle('Hello!')
.setDescription('Hey there from flick.js')
.setColor('#5865f2');
await interaction.reply({ embeds: [embed] });
});Links
License
MIT
