Discord.js Bot to monitor streamers

Hello,

For loading the object for each user, what is the best to accomplish this? Currently I just have const name = twitch_data[0].user_name. Then, more of the same up to [10]. My method isn’t very good because i have to change/add more to it in the future when i add more users.

Thanks again.

You may want to review/learn the basics of javascript

Heres on possible course

To answer your question, with a possible solution

for (var x=0;x<twitch_data.length;x++) {
    var username = twitch_data[x].user_name;
}

Yeah sorry about that. There were questions I asked that were more general JS questions than questions about the API. All of my API questions are answered. Thanks for all of the input.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.