!" 𝑱𝒂𝒎𝒆𝒔__
!" 𝑱𝒂𝒎𝒆𝒔__
Explore posts from servers
SIASapphire - Imagine a framework
Created by !" 𝑱𝒂𝒎𝒆𝒔__ on 1/2/2023 in #discordjs-support
Error Dashboard
Hello, I have an error in my dashboard. Could you help me because I don't understand what's going on Thanks
TypeError: C:\Users\james\OneDrive\Bureau\boots\src\views\index.ejs:2
1| <head>
>> 2| <%- include('parts/head', {bot, user, path}) %>
3|
4|
5| </head>

C:\Users\james\OneDrive\Bureau\boots\src\views\parts\head.ejs:173
171|
172| <% if(user) { %>
>> 173| <%
174| let guild = bot.guilds.cache.get(config.server.id).members.cache.get(user.id);
175| if(guild) {
176| if(guild.roles.cache.get(roles.administrator) || guild.roles.cache.get(roles.moderator)) {

Cannot read properties of undefined (reading 'guilds')
at eval ("C:\\Users\\james\\OneDrive\\Bureau\\boots\\src\\views\\parts\\head.ejs":75:33)
at head (C:\Users\james\OneDrive\Bureau\boots\node_modules\ejs\lib\ejs.js:703:17)
at include (C:\Users\james\OneDrive\Bureau\boots\node_modules\ejs\lib\ejs.js:701:39)
at eval ("C:\\Users\\james\\OneDrive\\Bureau\\boots\\src\\views\\index.ejs":12:17)
at index (C:\Users\james\OneDrive\Bureau\boots\node_modules\ejs\lib\ejs.js:703:17)
at tryHandleCache (C:\Users\james\OneDrive\Bureau\boots\node_modules\ejs\lib\ejs.js:274:36)
at exports.renderFile [as engine] (C:\Users\james\OneDrive\Bureau\boots\node_modules\ejs\lib\ejs.js:491:10)
at View.render (C:\Users\james\OneDrive\Bureau\boots\node_modules\express\lib\view.js:135:8)
at tryRender (C:\Users\james\OneDrive\Bureau\boots\node_modules\express\lib\application.js:657:10)
at Function.render (C:\Users\james\OneDrive\Bureau\boots\node_modules\express\lib\application.js:609:3)
TypeError: C:\Users\james\OneDrive\Bureau\boots\src\views\index.ejs:2
1| <head>
>> 2| <%- include('parts/head', {bot, user, path}) %>
3|
4|
5| </head>

C:\Users\james\OneDrive\Bureau\boots\src\views\parts\head.ejs:173
171|
172| <% if(user) { %>
>> 173| <%
174| let guild = bot.guilds.cache.get(config.server.id).members.cache.get(user.id);
175| if(guild) {
176| if(guild.roles.cache.get(roles.administrator) || guild.roles.cache.get(roles.moderator)) {

Cannot read properties of undefined (reading 'guilds')
at eval ("C:\\Users\\james\\OneDrive\\Bureau\\boots\\src\\views\\parts\\head.ejs":75:33)
at head (C:\Users\james\OneDrive\Bureau\boots\node_modules\ejs\lib\ejs.js:703:17)
at include (C:\Users\james\OneDrive\Bureau\boots\node_modules\ejs\lib\ejs.js:701:39)
at eval ("C:\\Users\\james\\OneDrive\\Bureau\\boots\\src\\views\\index.ejs":12:17)
at index (C:\Users\james\OneDrive\Bureau\boots\node_modules\ejs\lib\ejs.js:703:17)
at tryHandleCache (C:\Users\james\OneDrive\Bureau\boots\node_modules\ejs\lib\ejs.js:274:36)
at exports.renderFile [as engine] (C:\Users\james\OneDrive\Bureau\boots\node_modules\ejs\lib\ejs.js:491:10)
at View.render (C:\Users\james\OneDrive\Bureau\boots\node_modules\express\lib\view.js:135:8)
at tryRender (C:\Users\james\OneDrive\Bureau\boots\node_modules\express\lib\application.js:657:10)
at Function.render (C:\Users\james\OneDrive\Bureau\boots\node_modules\express\lib\application.js:609:3)
74 replies