Skip to content

Bot WIT interface

Every Zaun bot is a WebAssembly component built against the zaun:bot world, defined in WIT in zaun-bot’s wit/ directory. The SDKs wrap it; read this when you write a new SDK or want the exact shapes.

  • The world (world bot) lists what a bot imports from the host (messages, interactions, commands, community, storage, http, timers, log) and what it exports (init, on-event, on-interaction, on-autocomplete, on-timer).
  • Interfaces group the host’s functions; types holds every shared record and variant.

The pages in this section are generated from the WIT on every deploy. If they are missing, this is a local preview built without npm run gen.