zaida04 / guilded.js

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

add level and exp to member class #186

Closed Meff1u closed 1 year ago

Meff1u commented 1 year 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 1 year 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.