Empty placeholder object missing

master
masterhc 1 year ago
parent 2994b57978
commit d9d2cee1ab

@ -25,7 +25,7 @@ exports.dashboard = (bot)=>
username:'placeholder',
avatar:'',
}
if(!req.headers.cookie) return res.render('dashboard.ejs', {user:userPlaceholder, guilds:guildsPlaceholder});
if(!req.headers.cookie) return res.render('dashboard.ejs', {user:userPlaceholder, guilds:{}});
const connector = new DiscordAPI(req.headers.cookie, bot);
const user = await connector.getUser();
const guilds = await connector.getGuildsFull();

Loading…
Cancel
Save