Skip to main content

The Editor

A tour of the workspace: what every part of it does and where to find things.

The DisFuse editor

The toolbar​

The editor toolbar

Across the top, from left to right:

ItemWhat it does
DisFuse logoBack to your projects.
Project nameOpens your project's page. The pencil beside it opens project settings.
FileDownload the project file, load one, and show the generated code.
UtilitiesSecrets, templates, and hiding the toolbox.
Block countHow many blocks are in the workspace you are looking at.
Save stateSaving, saved, reconnecting, or an error.
VersionsOpens Version Control. Shows the active version's name.
InviteOpens the collaborators panel.
ExportDownloads your bot as a ZIP, or just its index.js. See Running your bot.

The File menu​

The File menu

  • Download saves the current workspace as a file on your computer, which is a quick manual backup.
  • Load File brings one back in.
  • Show Code opens the generated JavaScript.

The Utilities menu​

The Utilities menu

  • Secrets opens the secrets panel. Owners only.
  • Templates opens the template gallery, where you can add community and official templates to your project. See Templates.
  • Toggle Toolbox hides the toolbox, giving you the full window for the canvas.

The workspace tabs​

The workspace tab bar

Under the toolbar is a tab for each workspace in the project. Click one to switch, the plus to add another, and the pencil or bin on the active tab to rename or delete it. See Workspaces.

The toolbox​

The column on the left holds every block, grouped into categories. Click one to open its flyout, then drag a block onto the canvas.

The very top item is Search. Click it and type to find a block by its text.

Searching the toolbox

Using Blocks explains the categories and what the block shapes mean.

The canvas​

Where your blocks live.

ActionHow
PanDrag the empty background, or scroll.
ZoomScroll with Ctrl/Cmd held, or use the zoom buttons.
Undo and redoCtrl/Cmd + Z, and Ctrl/Cmd + Shift + Z.
Copy and pasteCtrl/Cmd + C, then Ctrl/Cmd + V. The block is pasted where your mouse is. Paste in the right-click menu pastes where you right-clicked.
DeleteDrag to the trash can, or select and press Delete.

Right-click on the canvas​

The canvas menu

Options for the whole workspace: paste a copied block where you clicked, undo, redo, clean up the layout, collapse or expand every block, delete everything, move blocks to another workspace, and Save Workspace as Template.

Right-click on a block​

The block menu

Options for one block: duplicate, add a comment, collapse, disable, delete, and help.

A few more appear depending on the block:

ItemWhat it does
HelpOpens the docs page for that block.
Preview MessageShows the message this block sends, as Discord will draw it. See Previews.
Preview ModalShows the modal this block builds. See Previews.
Copy JavaScript CodeCopies the code this block generates.
Move to workspaceMoves the block to another workspace.
Save as TemplateStarts a new template from a copy of this block.

Disable is worth knowing. A disabled block stays where it is but is left out of the exported code, which is the neat way to switch a feature off without losing the work.

The corner controls​

The canvas controls

Bottom right: zoom to fit, center, zoom in, zoom out, and the trash can.

Top right is the backpack. Drag a block into it to keep a copy, then drag it out in any other project.

Tooltips​

Hover over any block to see what it does, what types it accepts, and what it produces.

A block tooltip

Blocks with a question mark icon have longer help, which you open by clicking it.

Working with other people​

If somebody else has the project open, their avatar appears in the toolbar and their cursor and selection show up on the canvas as you both work. See Collaboration.

Making it yours​

Settings > Workspace in the dashboard changes how the editor looks and behaves: the theme, the block renderer, sounds, and the grid.

Workspace settings

See Settings.