wv3-discord.js
v1.0.8
Published
A lightweight Discord API client with a discord.js-inspired API.
Downloads
907
Maintainers
Readme
wv3-discord.js
wv3-discord.js is a small Discord API library with a discord.js-inspired API.
It does not depend on discord.js.
Instead, it provides a focused compatibility layer for common bot patterns:
- websocket-backed
ClientandWV3Client RESTandRoutesCollectionGatewayIntentBitsandEventsSlashCommandBuilder,EmbedBuilder, andAttachmentBuilder
Install
npm install wv3-discord.jsUsage
const {
WV3Client,
GatewayIntentBits
} = require("wv3-discord.js");
const client = new WV3Client({
intents: [GatewayIntentBits.Guilds]
});
client.once("ready", () => {
console.log(`Logged in as ${client.user.tag}`);
});
client.start(process.env.DISCORD_TOKEN);API notes
WV3Clientextends this package's localClient.createClient(options)returns a newWV3Client.client.start(token)is an alias forclient.login(token).- The current goal is practical compatibility for common slash-command bot flows, not a full one-to-one reimplementation of every
discord.jsfeature.
