Skip to content
On this page

Generate Sample Dashboard

This method allows you to create a sample, fully functioning Dashboard for the Discord Bot with discord-dashboard.

js
DBD.initDashboard({
    fileName, 
    domain, 
    port, 
    token, 
    clientSecret, 
    clientId, 
    licenseId
});
ArgumentType
fileNameStringIt's the file Name to which example Dashboard is saved (pass it without the .js suffix).
domainStringYour project domain. If hosted on localhost, http://localhost/.
portNumberPort on which the Dashboard will be listening.
tokenStringYour Bot Token.
clientSecretStringYour Client Secret.
clientIdStringYour Client ID.
licenseIdStringYour project license from Assistants Center: Licenses.

Released under the MIT License.