Tools
SDKs
The JavaScript SDK in one page.
The official SDK is a single file with no build step (Node 18+, socket.io-client). See SDKs to download it with a starter.
| API | Does |
|---|---|
new VoznestBot({ apiUrl, token, applicationId }) | Creates the client; botFromEnv() reads VOZNEST_* variables (the older QUORVYN_* names still work) |
bot.command(def, handler) | Declares a command; serverIds makes it a hub command |
bot.button(prefix, handler) | Handles buttons and menus whose customId starts with prefix |
bot.on(event, handler) | Any gateway event (MESSAGE_CREATE, MEMBER_ADD, …) or ready |
bot.start({ activity, sync }) | Syncs commands (adds, edits, removes) and connects |
bot.send / bot.edit / bot.upload | Post, edit, and upload files |
ctx.reply / defer / update / followUp / fail | Answer an interaction |
ctx.option(name) · ctx.can(permission) | Read parameters (resolved users/channels/roles) and check member permissions |
embed() · button() · select() · row() | Build rich messages |