|
|
|
@ -87,6 +87,7 @@ exports.guildData = (io,bot)=>
|
|
|
|
|
});
|
|
|
|
|
var TextChannels = [];
|
|
|
|
|
var emojis = [];
|
|
|
|
|
var roles = [];
|
|
|
|
|
if(extra)
|
|
|
|
|
{
|
|
|
|
|
for(var channel of extra.channels.cache)
|
|
|
|
@ -108,8 +109,17 @@ exports.guildData = (io,bot)=>
|
|
|
|
|
'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)
|
|
|
|
|