Repository navigation
FusionBot v8.3.4 #123
Secludedly
announced in
Announcements
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Slash Command Support + Message Content Intent Workarounds
Discord is removing the Message Content intent on bots, which is what lets the bot read what people type in chat. Without it, every $command stops working. This commit adds two new ways to talk to the bot so nothing breaks, without changing how the bot works.
The existing message commands are untouched. No prefix command was rewritten, removed, or changed in behavior. Everything added here runs alongside them, so this is simply an addition. Nothing removed.
Three Ways to Send Commands
Message commands — $trade, $clone, etc. Work exactly as before. These stop working when Discord removes the Message Content intent.
Mention commands — @Yourbot trade. Discord still lets the bot read messages that mention it directly, so this keeps all existing commands working after the intent is gone. It's off by default, so enable it in the Hub. Roles and permissions work exactly the same.
Slash commands — /trade, /clone, etc. Typing / shows the full list with descriptions, dropdowns, and autocomplete. Never affected by the intent removal.
Staff commands (Queue Management, Admin Tools, Switch Control, Bot Management, Echo & Logging, Permissions & Guild) were not converted to slash commands. They keep working through mention commands, so there's nothing new to learn and nothing to maintain twice. At least for now.
New Hub Settings
Two new entries under Startup, both translated into all 9 supported languages:
Slash Commands Added (48 total)
Standard Trading
Mystery / PokePaste / Ditto
Batch Trading
TXT Trading
File Libraries
Legality Tools
Queue and Account
General
Pop-Up Boxes for Showdown Sets
Discord's slash command boxes are single-line, which is awkward for Showdown sets. Four commands now open a proper multi-line pop-up when you run them without filling anything in (like pressing ENTER without selecting anything):
Example: https://i.imgur.com/6VHev59.png
Paste your full set, optionally add a trade code, hit submit. Batch commands go straight in the set as usual.
Pasting also just works. If you paste a full Showdown set into the single-line box, Discord flattens it onto one line. The bot now rebuilds the line breaks automatically, so this:
Bluey (Garchomp) (F) Ability: Sand Veil Alpha: Yes Serious Nature IVs: 31 HP / 6 Atk ...
...turns back into a proper multi-line set before it's processed. Handles nicknames, hyphenated names like Porygon-Z and Double-Edge, two-word entries like Tera Type and Met Location, and batch commands like .MetDate= and ~=Version=.
Other Improvements
Fixed: All six game-specific builders were showing up on every bot regardless of which game it runs. A Scarlet/Violet bot listed /create-swsh, /create-bdsp, and four more — all of which silently produced the wrong file type with no error. Now only the correct one registers, shown simply as /create.
Fixed: All five ($homeready, $hrl, $hrr, $hrv, $hrd) commands were written in a way Discord.Net skips over, so they were never actually registered. They now work as message commands, and list/request also have slash versions.
Slash commands now respect your ban list and channel whitelist. The existing /create-* commands had no such checks, so banned users could still use them and the channel whitelist was ignored. Every new slash command enforces bans, blocked users, channel whitelist, and where relevant the queue role and queue-open setting.
Item autocomplete follows the game. /itemtrade and /batch item suggest items valid for whichever game the bot is running.
/help builds itself. It reads the live command list rather than a hand-written one, so it can never fall out of date as commands are added.
Notes
This discussion was created from the release FusionBot v8.3.4.
All reactions