send roles too

master
Cristiano Pires 2 years ago
parent 07a108899e
commit 9a413fb082

@ -87,6 +87,7 @@ exports.guildData = (io,bot)=>
}); });
var TextChannels = []; var TextChannels = [];
var emojis = []; var emojis = [];
var roles = [];
if(extra) if(extra)
{ {
for(var channel of extra.channels.cache) for(var channel of extra.channels.cache)
@ -108,8 +109,17 @@ exports.guildData = (io,bot)=>
'name':emoji[1].name 'name':emoji[1].name
}); });
} }
for(var role of extra.roles.cache)
{
roles.push(
{
'id':role[0],
'name':role[1].name
});
}
} }
return {guild, extra, TextChannels, emojis}; console.log(roles)
return {guild, extra, TextChannels, emojis, roles};
} }
async function getRoleRules(guildid) async function getRoleRules(guildid)

Loading…
Cancel
Save