Closed HeCodes2Much closed 2 years ago
Hey, this error comes from a typo I made in the code. Try adding theme: 'light' to your dashboard options. I'll push a fix soon
@SimonLeclere i did that then when i go to dashboard and one i am loged in i get this error
node_modules/discord-easy-dashboard/themes/light/selector.ejs:4 2| 3|
>> 4| <% guilds.forEach(guild => { 5| const permsOnGuild = new Perms(guild.permissions.toString()); 6| if(!permsOnGuild.has(req.dashboardConfig.permissions)) return; 7| %> req is not defined
EDIT using theme: "dark" seems to fix that
Mmh that's weird. I'll try to reproduce the error later
dark theme seems to have this issue though :)
/node_modules/discord-easy-dashboard/themes/dark/guild.ejs:19 17|
<%= setting.name %>
18|
<%= setting.description %>
>> 19| 20| <% } else if (setting.type === 'boolean input') { %> 21|
<%= setting.name %>
22|
setting.get is not a function
Hey, so I think your errors come from mistakes in your code (like not specifying a getter when adding a parameter for example ;)
some times a random refresh fixed the issue some how