clashperk / clashofclans.js Goto Github PK
View Code? Open in Web Editor NEWJavaScript library for interacting with the Clash of Clans API
Home Page: https://clashofclans.js.org/
License: MIT License
JavaScript library for interacting with the Clash of Clans API
Home Page: https://clashofclans.js.org/
License: MIT License
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.
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.
Can I recover my banned clash of clans account. Or account protection enable account please..
How to solve this issue?
Can you make a bot of clash of clans for us please with more command
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
`
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?
Need to add all the contributors to the readme..
at new ClanWarLeagueGroup (.... node_modules\clashofclans.js\dist\struct\ClanWarLeagueGroup.js:55:33)
because while searching for a CWL, https://api.clashofclans.com/v1/clans/%23[TAG]/currentwar/leaguegroup only returns:
{
"state": "notInWar"
}
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;
}
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.