cyperdark / osu-api-extended

Package for advanced work with "osu" api
MIT License
49 stars 15 forks source link

search.js not working the right way #11

Closed TigerzJS closed 2 years ago

TigerzJS commented 2 years ago

It displays all users instead of searching for them.

cyperdark commented 2 years ago

need to see your code

TigerzJS commented 2 years ago

console.log((await v2.site.search("user", "JoeisCracked", 1)).user.data)

cyperdark commented 2 years ago

should be like that

console.log((await v2.site.search({
    mode: 'user',
    page: 1,
    query: 'JoeisCracked',
  })).user.data)
TigerzJS commented 2 years ago

Thank you so much