Runtime Variables

After successful key validation, the backend automatically sets global variables that you can use to customize your script behavior based on key properties. This is not available in the UI-Code, only

JD_IS_PREMIUM

Boolean indicating if the validated key is a premium key. Use this to enable/disable premium features.

JD_EXPIRES_AT

Unix timestamp (number) indicating when the key will expire. Calculate remaining time using JD_EXPIRES_AT - os.time().

JD_DISCORD_ID

String containing the user's Discord ID if they linked their account via Discord OAuth. Useful for tracking and personalization.

JD_CREATED_AT

Unix timestamp (number) indicating when the key was created. Use this to track key age.

JD_REASON

String describing validation status. Typical values: "Key validation", "Keyless".

Last updated