CustomEvents
Defined in: packages/core/src/custom-events.ts:22
Register your custom events here for typed track() calls. Name the Shardlens package your bot installs
(@shardlens/discordjs or @shardlens/http): with pnpm, a bot can’t see @shardlens/core itself.
Example
Section titled “Example”declare module '@shardlens/discordjs' { interface CustomEvents { ticket_opened: { category: 'billing' | 'support' }; }}lens.track('ticket_opened', { category: 'billing' });