const contributors = ["Here is a list of them:"];
fetch('https://api.github.com/repos/kayano-bot/kayano/contributors')
.then(response => response.json())
.then(data => data.forEach(user => contributors.push(user.login)))
.then(console.log(contributors))
export const team = [
{
'name': 'Pukima',
'discrim': '7331',
'mainRole': 'Main Dev & Creator',
'secRoles': 'Ideas, Planning, Mannager, Code, Maintain, Dependencies, Reviewer',
'desc': 'Pukima is the Main Dev and Creator of Kayano. He had the idea behind Kayano and wanted to create Kayano because he didn\'t wanted to pay for a bot which does not even have everything he needed. So he decided to create his own bot. Later he invited bolo to join his journey and to help out.'
},
{
'name': 'bolo',
'mainRole': 'Secondary Dev',
'desc': 'bolo is the newest addition to the Kayano team and she\'s helping out Pukima with developing the bot and eventually even the website. Not much more to say for now except: "Welcome to the team!"'
},
{
'name': 'All other awesome contributors!',
'desc': contributors.join('\u000A'),
},
{
'name': 'You?',
'mainRole': 'Marketing, Web Backend, discord.js Dev',
'shortDesc': 'We are searching for new Members to join the team! Contact Pukima for more informations.',
}
]
I have this code but the contributors does not get added to the desc even though it is in the Array somehow but I don't know how to access everything.
The console logged array
What I get: