Code Monkey home page Code Monkey logo

clashofclans.js's People

Contributors

bsantosh909 avatar csuvajit avatar dependabot[bot] avatar dylandelobel avatar r-priyam avatar rivu95 avatar vondyy avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

clashofclans.js's Issues

Error in getPlayerRanks

I created an account to post issues.
When I used getPlayerRanks, I got an error, probably due to an unaffiliated person who is not a member of the clan.
I hope this can be fixed.

new clan chat features

Hello,
Is it possible to get pinned message from the tchat of my clan using the API ?
I want to get new pinned messages easly to connect with my project.

getClans() Bug

Bug while searching clans using getClans() method.

Expected results: It should return all the clans with the search parameters.

real behaviour:
`E:\My Work\Discord Bots\Game One\node_modules\clashofclans.js\dist\struct\Clan.js:37
this.clanCapital = Object.keys(data.clanCapital).length > 0 ? new ClanCapital_1.ClanCapital(data.clanCapital) : null;
^

TypeError: Cannot convert undefined or null to object
at Function.keys ()
at new Clan (E:\My Work\Discord Bots\Game One\node_modules\clashofclans.js\dist\struct\Clan.js:37:35)
at E:\My Work\Discord Bots\Game One\node_modules\clashofclans.js\dist\client\Client.js:59:41
at Array.map ()
at Client.getClans (E:\My Work\Discord Bots\Game One\node_modules\clashofclans.js\dist\client\Client.js:59:27)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async E:\My Work\Discord Bots\Game One\tools\coc.js:6:18
`

Create API key Error

ErrorMsg: "Temporary application error, request failed."
I try many times, ip: 113.88.105.157. and it always return that msg. how to solve it?

Error with getPlayer()

Error when call getPlayer() with players below HT 10:

\CocTeams\node_modules\clashofclans.js\dist\struct\Unit.js:32
this.level = origin.level;
^

TypeError: Cannot read properties of undefined (reading 'level')

in rawSuperUnit, I debug with this code to continue my app:

        if (origin) {
            this.level = origin.level;
            this.maxLevel = origin.maxLevel;
            this.boostable = data.townHallLevel >= 11 && origin.level >= rawSuperUnit.minOriginalLevel;
            this.upgradeCost = original.upgrade.cost[origin.level - 1] || 0;
            this.upgradeResource = original.upgrade.resource;
            this.upgradeTime = original.upgrade.time[origin.level - 1] || 0;
        }

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.