windowRuntime 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

chevron-rightJD_IS_PREMIUMhashtag

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

chevron-rightJD_EXPIRES_AThashtag

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

chevron-rightJD_DISCORD_IDhashtag

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

chevron-rightJD_DISCORD_USERNAMEhashtag

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

chevron-rightJD_CREATED_AThashtag

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

chevron-rightJD_REASONhashtag

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

Last updated