Duplicate entitlement event
I don't understand why the event on entitlements returns the information to me twice.
I am looking for a solution so that the event is triggered once.
12 Replies
- What's your exact discord.js
npm list discord.js
and node node -v
version?
- Not a discord.js issue? Check out #other-js-ts.
- Consider reading #how-to-get-help to improve your question!
- Explain what exactly your issue is.
- Post the full error stack trace, not just the top part!
- Show your code!
- Issue solved? Press the button!No, its not that, all other events are called the same way but only the 3 events concerning entitlements are sent twice
When I use for example
I don't know if this is sensitive data but I can send it if you tell me it isn't.
Like that @Qjuh ?
{ user_id: '1108216541146775602', type: 8, starts_at: null, sku_id: '1304947827910119455', promotion_id: null, id: '1309260243032739932', guild_id: '968585752378224710', gift_code_flags: 0, ends_at: null, deleted: false, consumed: false, application_id: '1108216541146775602' } 0 BEFORE entitlementCreate listenerCount 1 1: Entitlement { id: '1309260243032739932', skuId: '1304947827910119455', userId: '1108216541146775602', guildId: '968585752378224710', applicationId: '1108216541146775602', type: 8, deleted: false, startsTimestamp: NaN, endsTimestamp: NaN, consumed: false } AFTER entitlementCreate listenerCount 1 { user_id: '1108216541146775602', type: 8, starts_at: null, sku_id: '1304947827910119455', promotion_id: null, id: '1309260243032739932', guild_id: '968585752378224710', gift_code_flags: 0, ends_at: null, deleted: false, consumed: false, application_id: '1108216541146775602' } 0 BEFORE entitlementCreate listenerCount 1 1: Entitlement { id: '1309260243032739932', skuId: '1304947827910119455', userId: '1108216541146775602', guildId: '968585752378224710', applicationId: '1108216541146775602', type: 8, deleted: false, startsTimestamp: NaN, endsTimestamp: NaN, consumed: false }
Still called twice :/
@Qjuh kk thanks