zaida04 / guilded.js

A library for creating bots with the guilded.gg bot API.
https://guilded.js.org
MIT License
69 stars 15 forks source link

add level and exp to member class #186

Closed Meff1u closed 2 years ago

Meff1u commented 2 years ago

e.g. :

const member = await client.members.fetch(serverid, memberid);
console.log(member.level, member.xp)

and it will return actual level and xp for guild.

zaida04 commented 2 years ago

This is a limitation of the Guilded API. XP data is not actively returned by API routes, though there are some workarounds like using the setXp method with 0 xp which will return their current xp.