Entitlement Update Event

Discord.js version: 15.0.0

Hello,
I would appreciate any help/guidance around handling the EntitlementUpdate event.

What type of object is passed to this event?

I assumed I would receive an Entitlement, but when I receive the event, it triggers the attached error message. The topmost error is:

TypeError: Cannot read properties of null (reading 'skuId')


Here are the first two lines of my event handler, for additional context:
export async function execute(entitlement: Entitlement) {
    if (entitlement.skuId === Membership) {


Thanks!
powershell_40OyhC7u6x.png
Was this page helpful?