Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Current LeaguePositions issue #75

Closed
ThaWill opened this issue Aug 15, 2019 · 1 comment
Closed

Current LeaguePositions issue #75

ThaWill opened this issue Aug 15, 2019 · 1 comment

Comments

@ThaWill
Copy link

ThaWill commented Aug 15, 2019

 kayn.Summoner.by.name('hide on bush')
        .region(REGIONS.KOREA)
        .then(summoner => {
            const id = summoner.id;
            kayn.LeaguePositions.by.summonerID(id).then(rank => {
                //. . .
            })
        })

When I try to get all the leagues of 'hide on bush' I get the following error, Is this an issue or am I doing it wrong?

(node:9644) DeprecationWarning: Collection#filterArray: use Collection#filter instead
TypeError: Cannot read property 'by' of undefined
    at kayn.Summoner.by.name.region.then.summoner (C:\Users\VICTOR\Desktop\es-shiba-discord\index.js:61:38)
@cnguy
Copy link
Owner

cnguy commented Aug 18, 2019

Hi, sorry for the late response. This has been deprecated in June 17th and in v0.9.10. Riot removed these endpoints.

https://github.com/cnguy/kayn/blob/master/CHANGELOG.md#0910-breaking

@cnguy cnguy closed this as completed Aug 21, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants