Guild Endpoint implementation
Hypixel API Endpoint: api.hypixel.net/guild
This endpoint returns Guild data by a player, name or id
Usage
Create a new Guild
object with client, id and guild type.
Example:
const guild = new Guild(client, 'guild name', 'name');
Other functions
List of all Guild
methods:
getGuildData
- Get the guild data and cache it to a variableget
- Get the guildgetID
- Get the ID of the guildgetName
- Get the guild namegetNameLower
- Get the guild name in lower casegetDescription
- Get the description of the guildgetCreatedAt
- Get the guild creation timestampisJoinable
- Check if the guild is joinableisPubliclyListed
- Check if the guild is publicly listedgetExperience
- Get experience of the guildgetLevel
- Get the level of the guild (see Leveling)getTag
- Get the guild taggetTagColor
- Get the guild tag colorgetLegacyRanking
- Get the guild legacy rankinggetCoins
- Get guild coins amountgetCoinsEver
- Get the guild coins ever amountgetMembersCount
- Get the members count of the guildgetMembers
- Get the members list of the guildgetAchievements
- Get the achievements of the guildgetPreferredGames
- Get preferred games of the guildgetExpByGame
- Get the guild experience by game type
Leveling
Guild has its own leveling system.
See Guild Leveling system implementation by Plancke.
You can use GuildLeveling
in your project.
List of all GuildLeveling
methods:
getLevel
- Get guild level by provided experience