Documentation
Everything from your first bot to selling it on the marketplace.
Basics
5Start here: accounts, the workspace and your first live bot.
- Getting startedCreate, publish and test your first private slash-command response.
- Your accountSign-in methods, profile, username and account settings.
- Two-factor authenticationEmail codes on login and how to recover access.
- The workspaceWhat every tab of a bot workspace does.
- Creating a Discord applicationGet a bot token, set intents and connect it to Bottly.
Building
14Design messages, commands, components and automations.
- Designing messagesEmbeds, colors, branding and the markdown Discord actually supports.
- Slash commandsNames, options, permissions, responses and ephemeral replies.
- Buttons, menus and modalsInteractive components and the actions you can attach to them.
- Automations and the flow builderTriggers, conditions and actions wired together on a canvas.
- Events and presenceWelcome messages, autorole, reaction roles and bot status.
- Running your botStart, stop, restart and what the runtime does behind the scenes.
- Free hosting and the ad passHow free-plan bots stay online on Bottly hosting, and who never needs an ad.
- Logs and troubleshootingThe usual failure modes and how to fix each one.
- Self-hostingRun your bots on your own Linux server instead of the managed Bottly infrastructure.
- Flow Builder: your first working flowUnderstand blocks, connections, branches and the draft-to-live workflow.
- Variables and dataUse trigger inputs, stored results and persistent values without guessing names.
- Permissions and Discord contextSeparate the caller, bot, channel overrides and role hierarchy.
- Step-by-step flow recipesBuild a command, a role button, a form and a safe API lookup.
- Testing and publishingVerify success and failure paths before a release.
Developer
4The Developer rank: how roles work, what unlocks, and the full code-to-marketplace workflow.
- Account roles explainedMember, Developer and Admin — who can do what, and how ranks are enforced.
- The Developer workflowChoose an execution model, build one feature and release a tested product.
- Configuration examplesA complete settings schema, field explanations and compatibility checks.
- Developer FAQExecution, customization, validation and upgrade compatibility.
Code & storage
4For Developer accounts: write real code, manage files, expose configuration.
- Code EditorProject files, flow functions, saving and reviewing AI changes.
- Storage CenterDistinguish project files, per-run variables and persistent bot records.
- bottly_config.jsonThe schema that turns your code into a configurable product.
- Configuration for buyersWhat someone who buys your bot can change — and what they cannot.
Marketplace
6Buy bots, sell your own, handle reviews, payouts and referrals.
- Buying a botBrowsing, discount codes, and what you get after purchase.
- Selling your botPublishing requirements, images, pricing and the 10% commission.
- Reviews, reports and moderationHow feedback and rule enforcement work.
- Creator profiles and badgesYour public page and what each badge means.
- ReferralsYour referral link, custom codes, rewards and the Discord referral panel.
- PayoutsWithdrawing your earnings in crypto.
Plugins, Studio & AI
5Ready-made features, emoji and graphics for your server, and building bots with AI.
- PluginsInstall ready-made features into a bot as flows you can edit.
- Emoji StudioDesign a matching emoji pack and upload it to your bot.
- Graphics StudioBanners, icons and welcome images from templates, applied to Discord in one click.
- AI connector (MCP)Build and publish bots by talking to Claude, ChatGPT or your code editor.
- Servers and the server AIConnect your Discord servers, get an AI analysis and let the AI Agent set things up.
Billing
4Balance, crypto payments, plans and codes.
Platform
3Notifications, security, status and where to go next.
Flow reference: Triggers
42Block-by-block setup reference for triggers.
- Slash CommandRuns when a user invokes a slash command.
- Button ClickRuns when a user clicks a button.
- Dropdown SelectRuns when a user picks a dropdown option.
- Modal SubmitRuns when a modal form is submitted.
- Message ReceivedRuns on every new message in a channel.
- Member JoinedRuns when a member joins the server.
- Member LeftRuns when a member leaves the server.
- Reaction AddedRuns when a reaction is added.
- Reaction RemovedRuns when a reaction is removed.
- Schedule (cron)Runs on a schedule (cron): every hour, every Monday at 9:00, every 15 minutes…
- Webhook ReceivedRuns when another service sends an HTTP request to this trigger's own URL: GitHub, Stripe, Zapier, your website or a script.
- Bot ReadyRuns once the bot connects to Discord.
- Message EditedRuns when a message is edited.
- Message DeletedRuns when a message is deleted.
- DM ReceivedRuns when someone DMs the bot.
- Voice JoinRuns when a member joins a voice channel.
- Voice LeaveRuns when a member leaves a voice channel.
- Voice MoveRuns when a member switches voice channels.
- Channel CreatedRuns when a channel is created.
- Channel DeletedRuns when a channel is deleted.
- Thread CreatedRuns when a thread is created.
- Role CreatedRuns when a role is created.
- Role DeletedRuns when a role is deleted.
- Member BannedRuns when a member is banned.
- Member UnbannedRuns when a ban is lifted.
- Member UpdatedRuns when a member's nickname or roles change.
- Invite CreatedRuns when an invite is created.
- Typing StartedRuns when someone starts typing.
- Bot Added To ServerRuns when the bot is added to a new server.
- Server Event CreatedRuns when someone schedules a server event (Events tab). {event.name}, {event.url}, {event.start}.
- Server Event StartedRuns when a scheduled server event goes live. {event.name}, {event.url}.
- Member Interested In EventRuns when a member marks a server event as Interested. {user}, {event.name}.
- AutoMod Blocked SomethingRuns when Discord AutoMod acts on a message. {user}, {automod.rule}, {automod.keyword}, {automod.content}.
- Crypto Alert ReachedRuns when a price alert is reached, in the channel it was set in: {alert.text}, {alert.user}, {alert.price} (Crypto Tools plugin).
- Crypto Wallet ActivityRuns when a watched wallet receives or sends: {wallet.text}, {wallet.amount}, {wallet.usd} (Crypto Tools plugin).
- Giveaway EndedRuns when a giveaway ends: {giveaway.winners}, {giveaway.prize}, {giveaway.entries} (Giveaways plugin).
- Suggestion ReviewedRuns when staff accept, deny or consider a suggestion: {suggestion.status}, {suggestion.reason}, {suggestion.author} (Suggestions plugin).
- YouTube: New VideoRuns when a YouTube channel uploads a video, short or live stream (YouTube plugin).
- Twitch: Goes LiveRuns when a Twitch streamer goes live (Twitch plugin, needs your Twitch Client ID and secret).
- Bluesky: New PostRuns when a Bluesky account posts (Bluesky plugin). Replies and reposts are skipped.
- RSS: New ItemRuns for every new item in an RSS or Atom feed: blogs, news, GitHub releases, podcasts, Reddit, Steam news (RSS plugin).
- SellAuth: New OrderRuns for every new completed SellAuth order (SellAuth plugin).
Flow reference: Messages
20Block-by-block setup reference for messages.
- Send MessageSend a message to a channel: text, embeds and buttons, or a Components V2 layout.
- ReplyReply to the triggering interaction: text, embeds, buttons or Components V2.
- Send EmbedSend a rich Discord embed. (Older block: Send Message now does embeds too.)
- Channel StickyKeep a message as the last one in a channel: set posts it as the channel's sticky, keep (after every member message) posts a new copy first and deletes the old one, remove takes it away. A burst never leaves two copies.
- Edit MessageEdit an existing message.
- Delete MessageDelete a message.
- Send DMSend a direct message to a user.
- Add ReactionReact to a message with an emoji.
- Remove ReactionsClear reactions from a message.
- Pin MessagePin a message in its channel.
- Unpin MessageUnpin a message.
- Publish AnnouncementCrosspost a message from an announcement channel.
- Get MessageFetch a message and store its content.
- Send FileSend an attachment from a URL.
- Send Text as FileSend text you build in the flow (a list, a log, JSON) as a .txt, .json, .csv or .md file, up to 1 MB. Blank channel answers the command or message.
- Send as WebhookPost a message with any name and avatar through a webhook the bot keeps in the channel (named Bottly). Sets {webhook.messageId}.
- Read Recent MessagesRead the last messages of a channel into {history.text} ("name: content" lines), {history.count}, {history.lastAuthorId} and {history.lastAt}.
- Create PollPost a Discord poll: a question with up to 10 answers people vote on.
- Show TypingShow the bot typing in a channel.
- Defer ReplyBuy time before answering an interaction.
Flow reference: Discord Components
10Block-by-block setup reference for discord components.
- ButtonOlder block that does nothing on Discord. Add buttons and menus in a Send Message block.
- DropdownOlder block that does nothing on Discord. Add buttons and menus in a Send Message block.
- String SelectOlder block that does nothing on Discord. Add buttons and menus in a Send Message block.
- User SelectOlder block that does nothing on Discord. Add buttons and menus in a Send Message block.
- Role SelectOlder block that does nothing on Discord. Add buttons and menus in a Send Message block.
- Channel SelectOlder block that does nothing on Discord. Add buttons and menus in a Send Message block.
- Mentionable SelectOlder block that does nothing on Discord. Add buttons and menus in a Send Message block.
- ModalOlder Modal block: opens the same form as Show Modal.
- Text InputOlder block that does nothing on Discord. Add buttons and menus in a Send Message block.
- Show ModalOpen a popup form on a button, menu or slash command: text fields, dropdowns, user/role/channel pickers and file uploads. Blocks on SUBMITTED run when the form is sent, with every answer as a variable.
Flow reference: Moderation
9Block-by-block setup reference for moderation.
- Ban UserBan the selected Discord user.
- Kick UserKick a member from the server.
- Timeout UserTemporarily mute a member.
- Warn UserAdd a warning to a member.
- Delete MessagesBulk delete recent messages.
- Add RoleGive a role to a member.
- Remove RoleRemove a role from a member.
- Move MemberMove a member between voice channels.
- Unban UserLift a ban.
Flow reference: Logic
21Block-by-block setup reference for logic.
- If / ElseCreate conditional branches.
- Check PermissionVerify the caller's permissions.
- Check RoleBranch on whether a member has a role.
- Check ChannelBranch on the current channel.
- CompareCompare two values numerically.
- ContainsCheck whether text contains a value.
- EqualsCheck whether two values are equal.
- RandomPick a random branch or number.
- DelayWait before continuing.
- CooldownRate limit this flow per user.
- Count in Time WindowCount how often something happens per key (e.g. messages per member) in the last seconds: over the limit goes to over. Sets {rate.count}.
- Run codeCall a function from this flow's code file.
- ConditionSeveral branches, each with its own rules (all or any must match). The first matching branch runs, otherwise Else.
- SwitchBranch on a value with up to four cases.
- Regex MatchTest text against a regular expression.
- Bot Has Permission?Check a permission the bot itself has.
- Check ContextBranch on whether the event happened in a server or DM.
- Is Bot?Check whether the user is a bot.
- Has Attachment?Check whether the message has files attached.
- For EachRun a branch once per item in a list.
- Stop FlowEnd this branch immediately.
Flow reference: Discord Data
8Block-by-block setup reference for discord data.
- Get UserFetch a Discord user object.
- Get MemberFetch a server member.
- Get ServerFetch the current server.
- Get ChannelFetch a channel.
- Get RoleFetch a role.
- Count MembersCount members, optionally with a role.
- List RolesStore every role name in the server.
- List ChannelsStore every channel name in the server.
Flow reference: Variables
7Block-by-block setup reference for variables.
- Set VariableStore a value for later steps.
- Get VariableRead a stored variable.
- IncrementIncrease a numeric variable.
- DecrementDecrease a numeric variable.
- Format TextBuild a string from variables.
- Save Shared ValueStore a value that later runs can read.
- Read Shared ValueRead a value saved by Save Shared Value.
Flow reference: Server Management
21Block-by-block setup reference for server management.
- Create ChannelCreate a text, voice or category channel.
- Delete ChannelDelete a channel.
- Rename ChannelChange a channel's name.
- Edit ChannelChange a channel's name and/or a voice channel's user limit, e.g. a join-to-create room. Empty fields keep what the channel has.
- Channel CounterShow a number at the end of a channel name after an arrow (legitˑcheck➔12, Użytkownicy ➔ 15), keeping the channel's own name and arrow style. Renamed at most every 5 minutes (Discord's limit); the newest number always lands.
- Set Channel TopicChange a text channel's topic.
- Set SlowmodeSet per-user message cooldown in a channel.
- Set Channel PermissionAllow, deny or reset a permission for a role or member.
- Create Private ChannelCreate a channel only chosen members and roles (and the bot) can see, e.g. a ticket. Sets {privateChannel}, {privateChannel.id} and {privateChannel.name}.
- Lock/Unlock ChannelsStop (or allow again) @everyone sending messages in some channels, or in every text channel. Sets {lockdown.count}.
- Apply Server TemplateCreate the roles, categories and channels of a JSON layout that the server does not have yet (same names are reused). Sets {template.created}.
- Back Up ServerSend the server's roles (permissions, colours) and channels (with their permissions by role name) as a JSON file. Apply Server Template can recreate the layout from it. Sets {backup.size}.
- Create ThreadStart a thread in a channel or on a message, or a post in a forum.
- Archive ThreadArchive a thread.
- Lock ThreadLock or unlock a thread.
- Create InviteCreate an invite link and store it.
- Create RoleCreate a role and store it.
- Edit RoleRename or restyle a role.
- Delete RoleDelete a role.
- Set NicknameChange a member's nickname.
- Set Bot PresenceChange the bot's status and activity.
Flow reference: Voice
3Block-by-block setup reference for voice.
Flow reference: Storage & Databases
9Block-by-block setup reference for storage & databases.
- Save RecordSave a record in this bot's Bottly storage, or as a row in your own PostgreSQL table (created with text columns if it does not exist).
- Find RecordFind the newest record where a field equals a value (Bottly storage or your PostgreSQL).
- Update RecordsChange fields on records where a field equals a value (Bottly storage or your PostgreSQL).
- Delete RecordsDelete records where a field equals a value (Bottly storage or your PostgreSQL).
- Count RecordsCount records, optionally where a field equals a value (Bottly storage or your PostgreSQL).
- Find Many RecordsList records that match filters, sorted and paged: order lists, stock left, leaderboards (Bottly storage or your PostgreSQL).
- Take One ItemPick one matching record and mark it in the same step, so two buyers never get the same item: stock delivery, codes, keys (Bottly storage or your PostgreSQL).
- Sum / Average RecordsCount, sum, average, min or max a field over matching records, optionally per group with a top list: revenue, best sellers (Bottly storage or your PostgreSQL).
- SQL QueryRun one SQL statement on your own PostgreSQL database, with values passed safely as $1, $2… parameters.
Flow reference: Plugins
27Block-by-block setup reference for plugins.
- ConvertConvert currencies (USD → PLN), crypto (BTC → EUR) or units (km → mi, °C → °F, GB → MB). Converter plugin.
- Sticky MessageKeep a message at the bottom of a channel: deletes the previous sticky and posts it again. Design it in the message editor. Sticky Message plugin.
- Remove StickyDelete a channel's sticky message (Sticky Message plugin).
- RobloxLook up a Roblox user, avatar, online status, groups, a group or a game (Roblox plugin).
- CryptoCoin prices, top coins, trending, Fear & Greed, network fees, wallet balances (BTC, LTC, ETH, SOL, TRON + USDT) and transaction status (Crypto Tools plugin).
- Crypto Price AlertAdd, list or remove a member's price alert. When the price is reached the Crypto Alert Reached trigger runs (Crypto Tools plugin).
- Watch WalletWatch a BTC, LTC, ETH, SOL or TRON wallet. Every balance change runs the Crypto Wallet Activity trigger (Crypto Tools plugin).
- Crypto PortfolioA member's wallets valued at live prices: add or remove a wallet, or show the total (Crypto Tools plugin).
- Give Message XPGive the member random XP (with a cooldown). The levelup output runs when they reach a new level (Leveling plugin).
- Get RankA member's level, XP, progress bar and leaderboard place (Leveling plugin).
- XP LeaderboardThe members with the most XP as ready-made lines in {top.text} (Leveling plugin).
- Edit XPAdd or remove XP, set XP or a level, or reset a member (Leveling plugin).
- Level Role RewardsGive the roles for every level the member reached, e.g. 5=@Active, 10=@Regular (Leveling plugin).
- EconomyWallets, daily and work rewards, payments, leaderboard, shop and inventory (Economy plugin).
- Casino GameBet coins on coin flip, dice, slots, roulette, blackjack or video poker. Blackjack and poker answer with their own buttons (Economy plugin).
- Start GiveawayPost a giveaway with Enter / Leave buttons, requirements (role, days in server, level) and automatic winners (Giveaways plugin).
- End GiveawayEnd a running giveaway now and draw its winners (Giveaways plugin).
- Reroll GiveawayDraw new winners for an ended giveaway, never the same people (Giveaways plugin).
- Post SuggestionTurn text into a suggestion card with upvote / downvote counts, staff Accept / Consider / Deny with a reason, and a discussion thread (Suggestions plugin).
- Ticket TranscriptSave the channel's messages (up to 1000) as an HTML transcript and send it to a channel (Tickets Pro plugin).
- SellAuth: Get InvoiceLook up a SellAuth invoice by ID (SellAuth plugin).
- SellAuth: Verify PurchaseCheck that an invoice is paid, optionally for a product or email.
- SellAuth: API RequestCall any SellAuth API action 1:1 (invoices, products, coupons, customers, tickets, subscriptions…).
- SellAuth: Product StockRead a product's stock and price.
- Anti-Nuke: GuardFind who did it in the audit log and trip when they exceed the limit.
- Anti-Nuke: PunishBan, kick or strip every role from the attacker.
- AI ChatAsk Bottly's AI and get a reply in your bot's own voice, with optional memory per member or channel. Uses the bot owner's daily AI requests. AI Chat plugin.
Flow reference: Utility & Web
9Block-by-block setup reference for utility & web.
- HTTP RequestCall any web API and store the response.
- Read JSON ValuePull a value out of a JSON string.
- Random NumberPick a random whole number.
- Random ChoicePick a random item from a list.
- MathDo arithmetic on two values.
- Text ToolsTransform text: case, trim, replace, cut, split, length.
- Discord TimestampBuild a live Discord timestamp tag.
- Log EventWrite a line to the bot's live log.
- Crypto WalletYour own Litecoin wallet (recovery phrase in a bot secret): an address per index, check a payment, read the balance or send coins, e.g. for an automatic middleman.