LogoAntiRaid

@antiraid-ext/events/discord/EntitlementUpdate

API reference for @antiraid-ext/events/discord/EntitlementUpdate

@antiraid-ext/events/discord/EntitlementUpdate

Functions

onEntitlementUpdate

EntitlementUpdate

Provides data abut the updated subscription. If the entitlement is renewed, the ``entitlement.ends_at`` field will have changed.

Function Signature
--- EntitlementUpdate
---
--- Provides data abut the updated subscription. If the entitlement is renewed, the \`\`entitlement.ends_at\`\` field will have changed.
function onEntitlementUpdate(event: Primitives.Event, callback: (entitlement: discord.EntitlementObject) -> ()) end

Arguments

event

Primitives.Event

callback

Function Signature
callback: (entitlement: discord.EntitlementObject) -> ()

Arguments

entitlement

discord.EntitlementObject

Last updated on