projects/sdk/agents/AGENTS.md
Using Fluxerly in an application
Use this guide when writing an application with @neontechspace/fluxerly, not when changing the SDK itself.
Follow the application's instructions and the user's scope first. This guide does not authorize access to accounts, credentials or live channels
Paths starting with node_modules/@neontechspace/fluxerly/ point into the installed package
Rules
- Import only from
@neontechspace/fluxerly,@neontechspace/fluxerly/effect,@neontechspace/fluxerly/testingor@neontechspace/fluxerly/effect/testing, never from itsdistorsrcfiles - Use
runBotfor a bot, as in the starter bot. UsecreateClientonly when the application needs manual control of connection and shutdown - In the default API, network calls return a Result for expected failures. Check
result.isErr()before readingresult.value, or return the call from a handler so the SDK reports the failure. In the Effect API, execute the Effect and handle its error channel - Read the bot token from the environment, such as
FLUXER_BOT_TOKEN, and keep it out of code, logs and commits - The SDK is ESM-only and needs Node.js 26.13 or newer. Use
importin a project whosepackage.jsonsets"type": "module" - Use only methods declared in the installed type files, even when a familiar method name seems likely, and report a missing method instead of inventing one
- Test a default API bot with
createTestBotfrom@neontechspace/fluxerly/testing, or a native Effect bot withcreateTestBotfrom@neontechspace/fluxerly/effect/testing. Neither needs a token or network
Start from the starter bot
This is node_modules/@neontechspace/fluxerly/examples/starter/bot.js, the bot that fluxerly init writes. The same folder has bot.ts, with the same code, and the native Effect bot-effect.ts
| 1 | import { defineBot, runBot } from "@neontechspace/fluxerly" |
| 2 | |
| 3 | // The bot's options without its token, so its test can run them through createTestBot without a token or a network |
| 4 | export const bot = defineBot({ |
| 5 | commands: { |
| 6 | prefix: "!", |
| 7 | commands: { |
| 8 | // Returning the reply reports a failed send to the log |
| 9 | ping: { execute: ({ reply }) => reply("Pong!") }, |
| 10 | }, |
| 11 | }, |
| 12 | }) |
| 13 | |
| 14 | // Running this file starts the bot, while importing it from a test does not. |
| 15 | // A failure that stops the bot, such as a rejected token, is logged and sets a failing exit code |
| 16 | if (import.meta.main) await runBot({ token: process.env.FLUXER_BOT_TOKEN, ...bot }) |
Run it with node --env-file=.env bot.js, where .env holds FLUXER_BOT_TOKEN=....
Keep the options in the exported defineBot call and the import.meta.main start line, so a test can import bot and pass it to createTestBot from @neontechspace/fluxerly/testing without a token or a network.
A project from fluxerly init has such a test in bot.test.js or bot.test.ts, run by npm test, pnpm test or bun run test
Patterns that do not exist in Fluxerly
- No
new Client()andclient.login(token). UserunBot({ token, ... }), orcreateClient({ token })and thenclient.run() - No intents. Fluxer sends events by permissions, visibility and subscriptions. Member presence updates also need
client.presence.setMemberswith the member IDs - No slash commands or interactions. Commands are prefix commands such as
!ping, through thecommandsoption ofrunBot - Messages are read-only data without methods, so
message.reply(),message.delete()andchannel.send()do not exist. Use thereplypassed to a handler, orclient.messages.send(channelId, content) - A
runBotevent handler receives a context object such as({ message, reply }), not the message itself - A bot author is detected with
message.author.isBot. There is nomessage.author.bot, andrunBotalready skips bot-authored messages unlessignoreBotsis false - Fluxer calls servers communities, and the SDK names them guilds, as in
guildId
Check a Result
Network and other I/O operations return ResultAsync, whose work starts when the method is called. Use await to get its Result, then check isErr() before reading .value.
The orThrow helper returns the value and throws the error instead
| 1 | import { createClient } from "@neontechspace/fluxerly" |
| 2 | |
| 3 | export async function sendOnce(token: string, channelId: string, content: string) { |
| 4 | await using client = createClient({ token }) |
| 5 | const sent = await client.messages.send(channelId, content) |
| 6 | // The caller decides how to report a failed send |
| 7 | if (sent.isErr()) throw sent.error |
| 8 | return sent.value.id |
| 9 | } |
Sending a single message over HTTP needs no gateway connection. For a long-running bot, reuse one client rather than creating one per message
Find the right API
- Read
node_modules/@neontechspace/fluxerly/package.jsonfor the installed SDK version, required Node.js version and supported import paths underexports - Unless the application already uses Effect or explicitly requests it, use
@neontechspace/fluxerlyand its Result-based API without adding an Effect runtime - Find the task in the map below and open the declaration file it names. Read the member's JSDoc and follow referenced declarations for its options and error types, rather than reading whole files. These comments document the installed SDK version
- Look for existing SDK helpers, command routing and paginated iterators before writing equivalent code
Paths in the map are relative to node_modules/@neontechspace/fluxerly/. The Effect API uses matching module names under dist/api/effect/, plus dist/api/effect/service.d.ts for FluxerClient and dist/api/effect/hierarchy.d.ts for hierarchy, imported from @neontechspace/fluxerly/effect. Native Effect tests live in dist/effect-testing.d.ts, imported from @neontechspace/fluxerly/effect/testing
- Run a bot with event handlers and commands:
dist/api/default/bot.d.ts, starting withdefineBot,runBotand their options - Create and control a client, schedule tasks and read diagnostics:
dist/api/default/client.d.ts,dist/client.d.ts,dist/api/default/options.d.ts, starting withcreateClient,client.run,client.connect,client.schedule,client.diagnostics - Prefix commands, arguments, guards and help pages:
dist/api/default/commands.d.ts,dist/api/default/guards.d.ts,dist/command-arguments.d.ts, starting with thecommandsoption ofrunBotandguards - Send, reply, edit, delete, react, pin and read history:
dist/api/default/messages.d.ts, starting withclient.messages(sends and replies accept strings, plain inputs or readyMessageBuilderinstances directly) - Embeds, message builders and voice notes:
dist/builders.d.ts,dist/messages.d.ts,dist/voice-notes.d.ts, starting withEmbedBuilder(from,clone, string shorthands.image(url),.thumbnail(url),.footer(text)),MessageBuilder(.tts(),.nonce(),.suppressEmbeds(),.suppressNotifications(), dynamicaddEmbeds),voiceWaveform - Wait for replies, reactions or confirmations:
dist/api/default/messages.d.ts,dist/api/default/collectors.d.ts,dist/collectors.d.ts,dist/reaction-confirm.d.ts, starting withclient.messages.collect,client.messages.collectReactions(supports emoji arrays and opt-inincludeRemovals),client.messages.confirm - Ban, kick, time out, rename and change member roles:
dist/api/default/members.d.ts, starting withclient.members(fetchCanManageacceptspreferCache) - Roles and the role hierarchy:
dist/api/default/roles.d.ts,dist/role-hierarchy.d.ts, starting withclient.roles,client.roles.fetchCanManage(acceptspreferCache),hierarchy - Check permissions and build overwrites:
dist/api/default/permissions.d.ts,dist/api/default/helpers.d.ts, starting withclient.permissions,permissionBits,permissionBits.overwrite - Channels, threads and forums:
dist/api/default/channels.d.ts,dist/api/default/threads.d.ts, starting withclient.channels,client.threads - Community data, counts and settings:
dist/api/default/guilds.d.ts, starting withclient.guilds - Users and direct messages:
dist/api/default/users.d.ts,dist/api/default/direct-messages.d.ts, starting withclient.users,client.directMessages - Invites, audit logs and community discovery:
dist/api/default/invites.d.ts,dist/api/default/audit-logs.d.ts,dist/api/default/discovery.d.ts, starting withclient.invites,client.auditLogs,client.discovery - Bot presence, application info and custom instances:
dist/api/default/presence.d.ts,dist/api/default/application.d.ts,dist/api/default/instance.d.ts, starting withclient.presence,client.application(fetch,fetchPublic),client.instance - Optional local caches:
dist/api/default/cache.d.ts,dist/cache.d.ts, starting withclient.cacheand thecacheclient option - Event names, payloads, subscriptions, shared multi-event queues, middleware and handler context:
dist/events.d.ts,dist/api/default/events.d.ts, starting withEventMap(includingthreadMemberUpdate),EventContext,client.onMany - Gateway voice signaling, grants, signals and refusals:
dist/api/default/voice.d.ts,dist/voice.d.ts, starting withclient.voice - Raw REST requests and gateway commands:
dist/api/default/rest.d.ts,dist/rest-routes.d.ts,dist/api/default/gateway.d.ts,dist/gateway-payloads.d.ts, starting withclient.rest.call,client.rest.request,client.gateway.fetchBot,client.gateway.send - Errors and Results:
dist/errors.d.ts,dist/api-errors.d.ts,dist/input-validation.d.ts,dist/error-tools.d.ts,dist/api/default/results.d.ts, starting witherrors,describeError,orThrow - Upload, refresh, download or stream attachments:
dist/api/default/attachments.d.ts,dist/attachments.d.ts, starting withclient.attachments - Webhooks and OAuth2:
dist/api/default/webhooks.d.tsforclient.webhooks,dist/api/default/webhook-client.d.tsforcreateWebhookClient, which sends through a webhook without a bot token, anddist/api/default/oauth.d.tsforoauth(createState,createPkce,createClientandoauthClient.request) - Community emoji and stickers:
dist/api/default/emojis.d.ts,dist/api/default/stickers.d.ts, starting withclient.emojis,client.stickers - Sharding and multi-process supervision:
dist/sharding.d.ts,dist/api/default/supervisor.d.ts, starting withshardingoptions,fileSessionStore,supervisor - Logging and observers:
dist/logging.d.ts,dist/api/default/logging.d.ts,dist/observer.d.ts, starting with theloggingoption ofrunBotandcreateClient, andclient.logging - Mentions, links, snowflakes, assets, text and colors:
dist/api/default/helpers.d.ts,dist/assets.d.ts, starting withformat,links,snowflakes,display,assets,text,colors - Tests without a token or network:
dist/testing.d.ts(@neontechspace/fluxerly/testing) anddist/effect-testing.d.ts(@neontechspace/fluxerly/effect/testing), starting withcreateTestBotandcreateTestClient
When the declarations do not answer a question, the documentation website has Markdown files for AI tools. Start with the task index at https://fluxerly.neontechspace.com/docs/where-do-i.md, which links the guide section for each common task, or the client method lists by task at https://fluxerly.neontechspace.com/docs/api/tasks-js.md, https://fluxerly.neontechspace.com/docs/api/tasks-effect.md and https://fluxerly.neontechspace.com/docs/api/tasks.md. The index of all guides is https://fluxerly.neontechspace.com/docs/llms.txt, and its first lines name the SDK version it documents. These files follow the newest release, so when that version differs from the installed one, trust the installed declarations
Project requirements
- A
require()call fails with an error that explains the SDK is ESM-only - TypeScript checks need TypeScript 7 and
@types/node, for example with"types": ["node"], because handler signals areAbortSignalvalues and clients supportawait using. Runningnode bot.tsdirectly needs no compiler - A missing or blank token is logged with a hint, sets exit code 1 and returns
ConfigurationErrorfromrunBotinstead of throwing
Keep the application's existing module and TypeScript settings when they work with the SDK. Report any incompatibility before proposing changes
Build the bot
runBottakes one options object with the client settings,eventshandlers, prefixcommands, asetupcallback for other startup work andonError. The default API callssetup(client, { signal }). By default it skips messages written by bots, and the default API'srunBotalso stops cleanly on SIGINT and SIGTERM. SetignoreBots: falseorprocessSignals: falseto turn either off. The native EffectrunBotfrom@neontechspace/fluxerly/effecthandles those signals only withprocessSignals: true, because an Effect launcher such asNodeRuntime.runMainmay already handle them. It checks every option before creating a client, then connects and resolves only after the bot stopped and SDK cleanup finished. By default, an expected runtime failure that stops the bot is logged once and setsprocess.exitCodeto 1. In the default API, invalid options can throw synchronously and unexpected defects can throw or reject, so applications that need to recover from or report them must handle those errors. PassreportFailure: falseonly when the application handles the returned failure itself- For prefix commands, pass
commands: { prefix, commands: { name: { arguments, guard, afterParse, cooldown, hidden, execute } } }torunBot. Arguments supportdefaultontext,boolean,choiceandcustom,minLength/maxLengthontextandcaseInsensitiveonchoice. Guards come fromguards:guildOnly(),dmOnly(),ownerOnly()for the application's owner,ownerOnly(ids),guildOwnerOnly(),requirePermissions(names),requireBotPermissions(names),requireRoles(roleIds, options?)and post-parsecanManage(argumentName, options?)inafterParse. Built-in community guards (guildOnly,guildOwnerOnly,requirePermissions,requireBotPermissions,requireRoles) narrowcontext.message.guildIdtostringinafterParse,cooldown.keyandexecute. A cooldown is{ durationMs, per: "user" | "channel" | "guild" }. Ahidden: truecommand is left out of help and suggestions but still runs, so guard commands that need protection - With
createClient, register handlers withclient.on,client.onMany(shared per-key ordered queue across multiple event types via{ partition }) orclient.subscribebeforeconnectorrun. Therunmethod waits until the client stops, not just until it connects. Theshutdownmethod closes the client permanently - Startup allows 30 seconds, and the first Identify adds 25 seconds once, because Fluxer can hold a session start that long while its Identify queue is busy. A reconnection attempt allows 30 seconds, plus 25 when it sends Identify instead of resuming. Size health checks and process manager start timeouts for up to about 55 seconds. Setting
connection.startupTimeoutMsorconnection.recovery.attemptTimeoutMsmakes that value one fixed deadline that Identify does not extend
In the default API, local work returns plain values and needs no Result handling: Creating clients and command routers, registering handlers, cache get lookups and helpers such as format and colors.
In the default API, misuse of local work, such as invalid options or a missing token, throws ConfigurationError or the helper's own error at once. The native Effect API returns Effects for some of this work, as described under "Only for native Effect applications"
Methods returning AsyncIterable, such as messages.iterateHistory, start work when iteration begins. Use for await and check each returned Result
Errors and cleanup
Expected runtime failures return Err in the default API (or fail the Effect channel in the native API). Unexpected faults reject or throw SdkDefect (wrapping callback faults as ApplicationError), and invalid local options throw ConfigurationError synchronously, so release clients with await using or in finally.
Every SDK error extends FluxerlyError with a stable code, an actionable hint, structured details and an optional cause. Use describeError(error) to print one with retry safety and validation fields, and inspect errors.apiCode(error) to branch on a Fluxer rejection such as "missingPermissions" or "fileSizeTooLarge", errors.isNotFound(error, resource?) for HTTP 404s (including "ban" for UNKNOWN_BAN, noting hidden community channels also return HTTP 404 UNKNOWN_CHANNEL, and both apiCode and isNotFound unwrap Effect Cause values), errors.match(error, handlers) to branch on _tag (returning a non-undefined value when _ is supplied), errors.outcome(error) ("notDispatched", "rejected", "unknown" or undefined) and errors.isRetryable(error) before repeating a call.
Only "notDispatched" proves a write was not sent: Never repeat a write whose errors.outcome(error) is "unknown" or undefined without reconciling Fluxer's current state first, because the change may already have applied.
Read structured inspection fields programmatically instead of parsing messages: error.hint, error.inputValidation (path, constraint, explanation), error.apiError (code, providerCode, validationErrors), error.details.requiredPermissions and error.details.streamUsed.
A retryable failure can still require a wait, as a rate limit or Fluxer's busy upload slots answer does, so first wait errors.retryAfterMs(error) milliseconds when it returns a number. An upload that read a ReadableStream, marked by details.streamUsed, is not retryable and needs a fresh stream or bytes.
Retrying after a failed client.run() requires creating a new client, because run() permanently closes its client. Operations on a closed client return ClientClosedError, and aborted signals in the default API return CancelledError (cancellation does not undo a write that was already sent)
Failures without a returned result, such as a handler that throws or returns an Err, go to the client's onError option or are logged at Error with the full error.
Do not wrap every handler in a catch that only logs. Let the SDK report it, or pass onError to route reports to the application's own error tracking
Keep shutdown in one place in the application. That code must also close the subscriptions, scheduled tasks and collectors it creates, with close(), using (on ScheduledTask via Symbol.dispose) or await using. Paginated reads have neither: Consume them with for await, whose end or early exit releases them, and cancel pending work with the request's signal.
A subscription registered after shutdown began is returned already closed with a Warn record, and a collector registered then reports ClientClosedError from its result()
Tests
Test a runBot bot by passing its own options object to createTestBot from @neontechspace/fluxerly/testing. It runs the bot's events, commands and setup against an in-memory Fluxer, with no token or network. Use createTestClient for code written against a client.
Both return a test harness with the real client at test.client and the controls ready(), emit(type, payload) for Fluxer events such as MESSAGE_CREATE, rest.respond(matcher, response), requests(), commands(), logs(), counters() and disconnect(). The shared fixtures build event payloads.
Send a user message with say(content) on a test bot, which resolves with the messages the bot sent, including sends that a test's rest.respond fixture rejected. Message sends and edits without a rest.respond fixture receive an echoed message.
Wait for a request with next() on the route that rest.respond returns, and for a quiet bot with idle(), instead of sleeping. Waits have no deadline unless timeoutMs is passed. Pass it to a wait that might never settle, or run tests with node --test --test-timeout=10000 --test-force-exit.
A handler or command failure without onError makes shutdown fail with UnhandledTestFailuresError, unless the test reads it from failures().
Release the default test client with await using or shutdown()
Before sending requests
- Keep IDs as decimal strings, not JavaScript numbers, and check documented units on timeout options. SDK methods and helpers trim surrounding whitespace from an ID and require a decimal without leading zeros, at most 9223372036854775807, and gateway IDs must also be nonzero.
client.rest.callandclient.rest.requestsend params and bodies as given - Null
contentclears a message's text. An edit withoutflagsneeds visible content, an embed or an attachment in the edit itself. To clear the text alone, include the message's currentflagsin the same edit, except on a voice note, where supplying flags clears the voice-note flag - Embed URLs, link channel URLs and webhook avatar URLs must start with lowercase
http://orhttps://, carry no credentials and name an IP address or a domain. On hosted Fluxer the domain needs a top-level domain, while a custom instance decides that itself. These rules do not apply to URLs the bot receives - Download
maxBytesis required and has no SDK ceiling. Callclient.attachments.download(attachment, { maxBytes })for in-memory bytes orclient.attachments.stream(attachment, { maxBytes })for large files. Both also support API-proxied attachment URLs with bot authentication whenproxy_attachments_through_apiis enabled on the instance - Check whether the chosen method reads cached data or fetches it from Fluxer. An object missing from the cache may still exist on Fluxer
- Keep tokens out of logs, examples, fixtures and error reports
- Check the documented cancellation and retry behavior before adding retries. Cancellation does not undo a write that was already sent. When a write's outcome is unknown, check Fluxer's current state if authorized rather than sending the same write again
Finish with evidence
Check the types of the application's actual imports and changed code against the installed package. Test success, expected failure and cleanup through the public API, preferably with the testing entry points
Run live checks only against explicitly authorized targets and clean up test-owned resources
A successful send response does not prove that the recipient received the message or that the full task succeeded. Check the result requested by the user. Report anything that could not be tested or accessed instead of claiming it is complete
Only for native Effect applications
Use an Effect version within the peerDependencies.effect range in the installed SDK's package.json.
The SDK is tested against the lowest version in that range, and a daily check runs its tests against the newest Effect 4 release in the range. Later Effect 4 releases are accepted, but Effect 3 and Effect 4 prereleases are not
Effect operations describe work but do not start it until executed.
Compose them with yield* inside Effect.gen, keep the scope open while its resources are needed, and execute the program from the application's entry point.
Do not return a usable client or collector from a scope that has already closed
| 1 | import { Effect } from "effect" |
| 2 | import { createClient } from "@neontechspace/fluxerly/effect" |
| 3 | |
| 4 | export function sendOnce(token: string, channelId: string, content: string) { |
| 5 | const program = Effect.scoped( |
| 6 | Effect.gen(function* () { |
| 7 | const client = yield* createClient({ token }) |
| 8 | const sent = yield* client.messages.send(channelId, content) |
| 9 | return sent.id |
| 10 | }), |
| 11 | ) |
| 12 | return Effect.runPromise(program) |
| 13 | } |
The native runBot takes the same options object with handlers that return Effects. Native setup(client) gets only the client and returns an Effect that runs in the bot's Scope, so use scoped resources for cleanup instead of a signal. Match examples/starter/bot-effect.ts.
For Layer-based programs, provide FluxerClient.layer(options) or FluxerClient.layerConfig({ token: Config.Redacted("FLUXER_BOT_TOKEN") }) and read the client with yield* FluxerClient. Building the layer does not connect.
Native logging goes through the program's Effect logger. The native test helpers from @neontechspace/fluxerly/effect/testing are scoped
Re-running an Effect can repeat a remote write. Handle typed failures separately from unexpected defects and interruption. Check each member's declaration rather than assuming every native member is an Effect
Advanced
- Build a command router with
commands.createandattachit to a client. Router options addusemiddleware,onReject: "reply"feedback,mentionPrefixandcooldowns: { maxEntries }, androuter.helpor the command context'shelp()(including focused single-commandhelp({ command })) builds help pages. The context'ssendHelp()sends them,confirm(prompt, options?)prompts with approve/cancel reactions (wrappingclient.messages.confirm), andpaginate(pages)shows pages that the command's author flips with reactions - Use
client.use(middleware)for event middleware around every lateronoronManyhandler - Check the installed declarations for an SDK method before using the raw tools below. Their types check nothing at runtime, so check a value before relying on it
- For Fluxer API routes without an SDK method, use
client.rest.call("METHOD /path/{param}", { params, query, body }), whose route, fields and response are typed from Fluxer's API description, with reviewed corrections from Fluxer's server code, and Fluxer's field names. Useclient.rest.request({ method, path })for a route or field newer than the SDK, or a routecalldoes not list, such as Fluxer's report flows. Both share the client's queue, rate limits and logging - For voice channel signaling, use
client.voice(join,leave,updateState) with typedvoiceStateUpdate,voiceServerUpdate,voiceSignaland opcode 12gatewayErrorrefusal events while keepinggateway.ignoredEvents: "auto"active. Built-in audio transport and playback are planned for Fluxer's own voice engine so bots avoid lock-in to a temporary media layer, and bots needing audio today can pass the typedvoiceServerUpdategrant straight to their own media client - For gateway commands without an SDK method, use
client.gateway.send(shardId, op, d) - For dispatches without a typed event, use
client.on("raw", (dispatch) => ...): Checkdispatch.documented, then comparedispatch.t, anddispatch.dgets the payload type the SDK describes from Fluxer's documentation and reviewed server code, with Fluxer's field names. Thedocumentedflag is true exactly for the types the SDK describes - The client logs startup, readiness, lost connections, long rate-limit waits, event drops, shutdown and every application failure by default. Records mask the token, Fluxer's credential forms and common credential names, such as Authorization headers, passwords and cookies, but not an unlabelled secret or another service's secret under a name the SDK does not know, so keep such secrets out of error messages.
Adjust output with the
loggingoption rather than filtering console output. Chooseformat("pretty"or"json"),sinkto forward records to another logger anddedupewhen creating the client. Changelevel, per-categorycategoriesanddebugwhile running withclient.logging.configure. SetFLUXERLY_DEBUG=1, or a list of categories, for Debug records. Leaveunsafepayload logging off unless explicitly authorized for local debugging. Each record has a stablecode, such asrest.rejected. The documentation website lists every error and log code - Read
client.diagnostics().countersfor failure, drop, retry and reconnect totals
Keep this guide in the project
Run npx --no fluxerly agents, pnpm exec fluxerly agents or bunx --no-install fluxerly agents in the application's folder to copy the rules above into its AGENTS.md, which many coding agent tools read automatically.
Running it again after an SDK update refreshes only that section
The installed fluxerly CLI also provides:
fluxerly init(--template js|ts|effect,--dir <folder>,--pm npm|pnpm|bun,--no-install): Scaffold a runnable starter bot project without replacing existing filesfluxerly agents(--target agents|skill|cursor|claude|gemini|all,--check,--print): Sync, check or print agent rules and tool-specific instruction filesfluxerly doctor(--dir <folder>,--json): Run offline static checks on Node.js, ESM,tsconfig.json, TypeScript 7,@types/node, Effect,node_modulesdrift,AGENTS.md,.gitignoreand.envwithout printing secretsfluxerly triage([problem],--agent antigravity|claude|codex|opencode|t3code|other,--model <id>,--dir <folder>,--log <file>,--run <command>,--print): Investigate a bot or SDK issue with a coding agent or print a redacted triage brieffluxerly invite <applicationId>(--permissions <value>,--instance <url>): Build a Fluxer bot installation URL offline from permission names or a decimal bitfield, optionally targeting a self-hosted instance origin