Сообщество IT-специалистов
Ответы на любые вопросы об IT
Профессиональное развитие в IT
Удаленная работа для IT-специалистов
const playerIds = channel.members.map(member => member.id); const sql = `SELECT * FROM players WHERE user_id IN (${playerIds.join(',')})`; client.db.all(sql, (err, players) => resolve( players.map(player => { const member = channel.members.get(player.user_id) return `[**${player.level}**] ${member} ${player.kills ? `${kills} **${player.kills}** ` : ''}${player.damage ? `${damage} **${player.damage}**` : ''}` }) ));
const players = await getPlayers(client, message, channel),