diff --git a/controller/api.js b/controller/api.js index b748811..96da790 100644 --- a/controller/api.js +++ b/controller/api.js @@ -52,6 +52,7 @@ exports.guildData = (io,bot)=> var roleRules = aux ? await getRoleRules(guild.id):null; var guildTextChannels = aux ? aux.TextChannels:null; var emojis = aux ? aux.emojis:null; + var roles = aux ? aux.roles:null; const dataObject = { id:guild.id, @@ -64,7 +65,8 @@ exports.guildData = (io,bot)=> memberCount:aux.extra?aux.extra.memberCount:null, roleRules, guildTextChannels, - emojis + emojis, + roles }; resolve(dataObject);