Fluxer.js 2.0 · 36 guides
Guides
Practical, copy-pasteable walkthroughs — from your first bot through production patterns for messages, media, voice, and events.
Start with InstallationGetting Started
8 guides
Installation
Install @fluxerjs/core, set your token, and run a first bot.
Basic Bot
Login, handle Ready, and reply to !ping. Start here after install.
Errors
Catch FluxerError, read ErrorCodes, and turn API failures into useful replies.
Self-hosting & multi-instance
Run bots against hosted Fluxer, a self-hosted instance, or both in the same Node process. One Client per instance. ClientCluster (beta) can add/remove runtimes without restart.
Caching
How guilds, channels, members, and messages sit in client caches.
Presence
Set online status and custom status text with setPresence.
Discovery
Point a Client at a self-hosted instance with Client.fromDiscovery.
Migrating to 2.0
Full upgrade guide and breaking-change reference for the Fluxer.js major rewrite.
Sending Messages
8 guides
Direct Messages
Send and receive DMs with user.send and MessageCreate.
Sending Without Reply
Send messages to the same channel or to specific channels. Covers message.send(), message.sendTo(), client.channels.send(), and client.channels.resolve().
Embeds
Build rich embeds with EmbedBuilder and send them without toJSON().
Editing Embeds
Send an embed, then edit it in place with message.edit.
Builders
EmbedBuilder, AttachmentBuilder, and MessagePayload without calling toJSON yourself.
Reactions
Add and remove reactions, and listen with MessageReactionPayload.
Message History
Fetch messages, pin history, and bulk delete with channel.messages and bulkDelete.
Allowed Mentions
Control @everyone, role, and reply pings with allowedMentions.
Media
5 guides
Embed Media
Add images and thumbnails to embeds with EmbedBuilder and EmbedMediaOptions.
GIFs (Tenor)
Send Tenor links as gifv content, or resolve a GIF URL for embeds.
File Attachments
Upload files with messages and set spoiler or animated flags.
Attachments by URL
Attach a remote file with files: [{ name, url }] instead of downloading first.
Profile URLs
Get avatar, banner, and other CDN URLs easily with User/Webhook/GuildMember methods or standalone CDN helpers for raw API data.
Channels
3 guides
Roles
Create, fetch, edit, and delete guild roles. Use PermissionFlags and resolvePermissionsToBitfield for permission bitfields.
Channels
Create and manage channels, roles, and invites. Covers guild.createChannel(), channel.edit(), channel.createInvite(), guild.createRole(), and more.
Invites
Create and list channel invites with camelCase options.
Emojis
1 guide
Webhooks
2 guides
Voice
1 guide
Events
4 guides
Wait for All Guilds
Delay Ready until every guild from the handshake is in cache.
Events
Listen to gateway events with client.on. Handlers receive hydrated structures, camelCase DTOs, or wire payloads depending on the event.
Prefix Commands
Parse !commands with parsePrefixCommand and dispatch handlers.
Collectors
Collect messages or reactions for a limited time with filters and max counts.
Other
4 guides
Permissions
Check member permissions (guild-level and channel-specific), bot permissions via guild.members.me, owner override, and PermissionFlags.
Moderation
Ban, kick, and unban with permission checks.
Bans
List guild bans and remove them with fetchBans and GuildBan.unban.
Member Search
Search guild members with guild.members.search and camelCase filters.