Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- client.on("message", async (msg) => {
- if (msg.content.toLowerCase() === prefix + "players") {
- if(!msg.member.hasPermission('ADMINISTRATOR')) return;
- let test = [``];
- await srv.getCurrentPlayers().then(data => JSON.stringify(data.forEach(e => test.push(`Name :${e.name} \nID :${e.id} \nPing :${e.ping} \n${e.identifiers.map(t =>t).join('\n')}\n\n`))))
- msg.channel.send('```'+ test + '```',{
- split: {
- prepend:'```',
- append:'```'
- }
- })
- }
- })
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement