Creating Mods

Mods are the best way for user-created content to make its way into DBS.

To see current mods, and view an example mod that you can make into your own, follow this link: https://github.com/discord-bot-studio/mods

Mod File Format

HTML

The HTML is what will be rendered in the node in Discord Bot Studio. You can use <select>, <input>, and <textarea> to capture input from the user. The name attribute will be used to save the input data. This is then made available in the mod function as fields on the action parameter.

Mod

The mod function is where the logic of the mod should be written. There are parameters available for use.

The action parameter will have fields with the values that were saved from the user input from the node HTML.

Last updated