diff --git a/controller/api.js b/controller/api.js index b3f04e9..b1c6cef 100644 --- a/controller/api.js +++ b/controller/api.js @@ -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();