DiSkyOrg / DiSky

The best Skript add-on for Discord management! Slash commands, interaction, components, modal and much more available!
https://disky.me/
Apache License 2.0
42 stars 12 forks source link

Member boost event #184

Closed Mav124004 closed 3 months ago

Mav124004 commented 3 months ago

Member boost event is not working properly is very rare to be work properly 1/10 times

ItsTheSky commented 3 months ago

Do you have the guild members intent enabled? And what about your caching filter? From JDA's Docs:

This event requires the GUILD_MEMBERS intent to be enabled. Additionally, this event requires the MemberCachePolicy to cache the updated members. Discord does not specifically tell us about the updates, but merely tells us the member was updated and gives us the updated member object. In order to fire a specific event like this we need to have the old member cached to compare against.

Mav124004 commented 3 months ago

What Im doing wrong? Also the author returns event-bot The first boost works as seem on picture but second doesn't

image image image image image image

ItsTheSky commented 3 months ago

I added a way to get the user/member who boosted, but I'm not sure where the event not being fired comes from, as you seem to have enabled both Guild Members' intent & have the cache policy set to all.

ItsTheSky commented 3 months ago

Will be "changed" according to the new docs: https://disky.me/docs/docs/events/#on-member-boost-time-change-event This will start from v4.15.2