|
|
|
@ -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();
|
|
|
|
|