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:

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.

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.
In this example mod you can see that there is a textarea which has name="messageText". That allows us to access action.messagetext from within the mod code.
Copy link
On this page
Mod File Format