question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[Guild Issue] Guild API Endpoint Inconsistency/Missing Documentation

See original GitHub issue

Before I start, I’m aware there’s already open issues like this. I created this as an overall summary and go into further detail about the issues at hand.

Lately, I’ve noticed that there’s inconsistencies and issues within the Guild API Endpoint which affect the accuracy of the data you intend to provide to the end-users of the API. I understand things aren’t perfect but for the Guild API it’s never consistent with the response that I should be getting.

1) Missing Documentation

If you query https://api.hypixel.net/guild?key=YOUR_KEY&id=5bb8dbe40cf2d46f5a5c5c21, you’ll notice the documentation for the "coins" and "coinsEver" field is not present in the example response provided.

2) Inaccurate/Missing Daily Member GEXP.

I know there’s already issues open about this; however I have added this here in hopes it will even get looked at as the other issues seem to be neglected.

When querying the Guild Endpoint; some member’s in my guild seem to have missing, inaccurate and unorganized Daily GEXP Data such as one of my member’s in this image. I get not all dates may be in order and that’s not the big issue here, the issue is that there’s missing fields/days where GEXP was earned as reported by “/g member” ingame and I’m sure this is not intentional as when you go to add up all of the member’s Daily GEXP to get the Guild’s overall Daily GEXP you can sometime underreport the amount of GEXP earned that day.

Here’s an example of inaccurate/missing GEXP Data. image The ID of the Guild used in that screenshot is 5bb8dbe40cf2d46f5a5c5c21 AKA The Wavy v2.

At the time of writing this, there’s 17 API Errors relating to GEXP inaccuracy within my guild (affects 17 unique UUIDs/People). To check this, make a JSON request to my guild or anyone really and run this in the browser console:

body = JSON.parse(document.getElementsByTagName('pre')[0].innerHTML);
test = body.guild.members.filter(item => Object.keys(item.expHistory).length !== 7);
test.forEach(item => console.log(`Error: ${item.uuid}, Length: ${Object.entries(item.expHistory).length}`))
console.log("Number of API errors found: " + test.length)

That will return the number of API Errors present in the data along with the affected UUIDs.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:7
  • Comments:9 (3 by maintainers)

github_iconTop GitHub Comments

4reactions
shadowtime2000commented, Aug 10, 2020

you’ll notice the documentation for the "coins" and "coinsEver" field is not present in the example response provided.

Coins are a concept of the legacy guild system, and thus undocumented on purpose, as you usually don’t need them and it may be removed at any time.

I agree, however this is apart of the response in the API and it should be documented with a note that it may be removed at any time.

I don’t agree and it was me who removed the documentation for this, because deprecated stuff shall stay undocumented as you simply don’t need it.

@mdashlw Deprecated means it’s no longer supported not unnecessary. The two skyblock bazaar product and list endpoints are deprecated yet the documentation is still there along with the note that those are deprecated endpoints.

3reactions
AzureAaroncommented, Jul 15, 2020

you’ll notice the documentation for the "coins" and "coinsEver" field is not present in the example response provided.

Coins are a concept of the legacy guild system, and thus undocumented on purpose, as you usually don’t need them and it may be removed at any time.

I agree, however this is apart of the response in the API and it should be documented with a note that it may be removed at any time.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Issues - GitHub
Explicitly document that the modification of the nickname of the owner of a server/guild is not possible. However, this is inconsistent as one ......
Read more >
Guild · Wynncraft Public API Official Documentation
Guild information, such as: level, members, territories, xp, and more. Guild Object. Field, Type, Description, Options. name, String, Name of the guild. prefix ......
Read more >
Discord Developer Portal — Documentation — Guild
When moving members to channels, the API user must have permissions to both connect to the channel and have the MOVE_MEMBERS permission. This...
Read more >
discord/guilds - API Reference Documentation - Autocode
Explore the API reference documentation for discord/guilds@0.2.4 on Autocode. ... Returns a list of partial guild objects the current bot is a member...
Read more >
API Guild | Stoplight
Explore your APIs, track dependencies and view changelogs; Invite team members to collaborate on API assets; Create and update API designs and documentation...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found