I'm trying to create a message which is essentially a lineup of all players. I'm trying to do this task by fetching their roles from Discord Server.
Problem happens when using a command that message needs to be updated due to some changes and it misses few people even though proper roles are present.
const role = interaction.guild.roles.cache.find(role => role.id === teamRoleIDs[i]);
const totalMembers = role.members.map(m => m.id);