Guides
Migrating from v1
Old class to new SDK in five minutes.
| discord-botlists 1.x | 2.0.0 |
|---|---|
new BotLists(webhook, data, port, ip, redirect) | new Botlists({ webhook: { port, path, secret } }) |
botlists.start() | await lists.startWebhooks() |
on('vote', (name, token) => ...) | on('vote', (vote) => vote.voterId) |
express dependency | Zero dependencies, node:http |
axios dependency | Native fetch with retry-after handling |
manual botlists.json editing | Generated registry, auto pruned by status sync |
InfoEvent payloads changed from positional arguments to a single normalized object. Everything you read from vote.raw is still the untouched original body, so old integrations keep working during migration.