Discord Bot Builder News — September 28, 2024
Aggregated from Steam, cross-tracked with Battle.net coverage on GamePatchNote.

Hey Builders!
This is the first update related to the second phase of preview releases, where the new features are more about the bot this time. With that said, let's talk about the new DBB Bot v2.0:

DBB Bot 2.0
The new bot.js file was made from scratch to offer a better performance and fidelity, and is now smarter than ever at detecting issues and having new mechanics. Below there are some of those new features:

New Mechanics
Less action, or not...
DBB Bot v2.0 is smart to the point of being able to get values from blocks that had no direct connection previously (via the Action ports).
It's recommended that you continue connecting the blocks that may take longer to process and return the value (also known as asynchronous blocks), such as those that fetch data from the internet, read files, etc...
If you don't feel confident with this new logic, you can still continue connecting all the Action ports as usual.

Required Input Warning
It happens to the best of us
In the console, it will warn you whenever it runs a block with a required input not connected, showing you all the information to help you find the target input.

New Command/Interaction Blocks
And more other blocks...
Finally added slash commands to DBB! The old prefix command system is obsolete and it's recommended (even by Discord) to switch to slash commands or other types of commands/interactions.

Multiselect Option
Being able to select more than one option
This new option type provides the ability to get a list of selected options, ordered by the user, and the block developer can even set:
- allowUserOptions = false - Whether to allow the user to write and select custom options
- duplicates = false - Whether to allow the user to select the same option more than once

Better Search
Less scrolling and more accurate results at the top
Item Browser has a better algorithm to search for better overall results.

Create Block by Dragging Wire
Less wires to connect
Instead of always right-clicking to open the Item Browser, you can also drag a wire to an empty spot to open it and then wiring the newly placed block automatically.
Changelog
- Added DBB Bot v2.0
- Slightly better overall performance
- Added new mechanics (see above)
- Added Required Input Warning
- Beautified console messages
- Added command/interaction-related blocks
- Fixed and improved audio-related blocks
- Added executedFrom property to block's cache
- Added new tools for block developers:
- setDependency(dependencyId: string, blockName: string, data: unknown)
- eraseConsole()
- runNextBlock(outputId: string, cache: BlockCache, multiPortIndex?: number)
- GetInputValueAsync(inputId: string, cache: BlockCache, explicitValue?: boolean, defaultValue?: unknown)
- isInputConnected(inputId: string, cache: BlockCache, multiPortIndex?: number)
- isOutputConnected(outputId: string, cache: BlockCache, multiPortIndex?: number)
- findWorkspaces(searchType: "id" | "title" | "description", searchValue: string)
- setDependency(dependencyId: string, blockName: string, data: unknown)
- Slightly better overall performance
- Added MULTISELECT and TEXT_LINE option types for blocks
- Added the ability to add a description to each option in a SELECT block option type
- Forced bot.js file being updated on the first bot run
- Removed "Set Bot Main Prefix" and "Set Bot Owners" menu options as they are obsolete
- Improved "Set Bot Intents" menu option
- Updated "Generate Bot Invite" menu option to support a User-Installable App
- Added the ability to create items by dragging and dropping the wire into an empty spot
- Improved the search results of Item Browser
- Made Note avoiding being selected when making a selection area within it
- Added "Animated Item Preview" and "Oversimplify Items" settings to Workspace settings page
- Added "Add starting block when creating workspace" setting to Advanced settings page
- Made font size of Note's title increase when zooming out
- Fixed the font size of SELECT block option being bigger than before
- Fixed wires disconnecting when switching between single port and multiport
- Added Steam Language API support
- Added Japanese, Korean and Thai translations by npcdotcom (NPC), Svelion, muleu (Null) and npoka (Simba 🦁)
Added/Updated Blocks
- await_message_component
- boolean
- bot_initialization_event
- button_component
- clear_server_queue
- command_interaction_event
- control_bot_audio
- control_variable
- create_action_row
- create_command_advanced
- create_context_menu
- create_modal
- create_select_menu_component
- create_slash_command
- defer_interaction_reply
- delete_interaction_reply
- delete_variable
- discord_audio_player_dependency
- discord_commands_manager_dependency
- edit_interaction_reply
- emitter
- get_audio_info
- get_bot_audio_info
- get_bot_info
- get_interaction_info
- get_slash_command_options
- get_variable
- interaction_create_event
- join_voice_channel
- leave_voice_channel
- loop_server_queue
- modal_text_input
- play_audio
- remove_audio_from_server_queue
- reply_interaction
- restrict_interaction
- select_menu_option
- send_message
- send_webhook_message
- set_audio_volume
- shuffle_server_queue
- skip_audio
- slash_command_option
- text_line
MrGold - DBB Developer
DBB Discord Server
Unofficial DBB Website