danielwerg / r6api.js

🍫 Node.js wrapper around Rainbow Six Siege APIs
https://npm.im/r6api.js
MIT License
111 stars 19 forks source link

How to use multiple usernames/ids in find functions? #100

Closed zRickz closed 1 year ago

zRickz commented 1 year ago

Hi! I'm trying to use findbyUsername function with multiple usernames(with Array) but it's not working... How to do that correctly(if is possible)?

(A stupid question, i know. Sorry xD)

EndBug commented 1 year ago

Hey 👋🏻 You should be able to run something like this:


r6api.findByUsername(platform, 
  ['Daniel.Nt', 'Seqlud'] // Just use an array instead of a single string
).then(console.log)
zRickz commented 1 year ago

Ok! Now it worked. Thanks!