Repository · 12 examples
Examples
Runnable programs covering the SDK from a minimal login to voice and moderation. Read the full source here, or open it on GitHub.
Attachments example — upload a buffer, spoiler flag, and attach by URL.
Attachments example — upload a buffer, spoiler flag, and attach by URL.
Collectors example — ask a question, wait for a reply or a reaction.
Collectors example — ask a question, wait for a reply or a reaction.
First Steps Bot — five starter commands to learn the SDK.
First Steps Bot — five starter commands to learn the SDK.
Info / profile bot — user, server, role, and guild member profile helpers.
Info / profile bot — user, server, role, and guild member profile helpers.
Minimal Fluxer bot — login + !ping → Pong.
Minimal Fluxer bot — login + !ping → Pong.
Moderation example — !ban, !kick, !unban, !perms.
Moderation example — !ban, !kick, !unban, !perms.
@beta Multi-instance ClientCluster example.
@beta Multi-instance ClientCluster example.
Prefix-command bot — latency, embeds, DMs, replies, and reactions.
Prefix-command bot — latency, embeds, DMs, replies, and reactions.
Reaction detection example — listen for MESSAGE_REACTION_* gateway events.
Reaction detection example — listen for MESSAGE_REACTION_* gateway events.
Reaction roles — react to get a role; remove the reaction to drop it.
Reaction roles — react to get a role; remove the reaction to drop it.
Voice bot — join a VC and play WebM/Opus audio or MP4 video.
Voice bot — join a VC and play WebM/Opus audio or MP4 video.
Webhook example — create, list, send, and delete webhooks.
Webhook example — create, list, send, and delete webhooks.
Prefer a walkthrough? Start with the Basic Bot guide.