Skip to main content

Examples

Each example corresponds to a runnable bot in the flowcord-core/examples/ directory. The snippets on these pages highlight the key FlowCord patterns and may omit boilerplate for brevity — refer to the source files for complete, runnable code. They build on each other — later examples assume familiarity with earlier ones.

All examples

ExampleSlash commandWhat it demonstrates
Quick Start/weatherMinimum setup: one menu, state, buttons
Multi-Menu Navigation/cookbookMultiple menus, goTo, goBack, history stack
State & Lifecycle/workoutTyped state, ctx.state vs ctx.sessionState, all lifecycle hooks
Sub-Menu Continuation/partyopenSubMenu, ctx.complete, returning results to a parent
Select Menus & Modals/eventsetSelectMenu, setModal, multi-modal, opensModal
Pagination & Guards/shopButton pagination, list pagination, guard, pipeline

Where to start

If you're new to FlowCord, start with 01 — Quick Start and work through in order. Each example introduces one or two new concepts without re-explaining the basics.

If you're looking for something specific:

All source files live in flowcord-core/examples/.