$memberJoinedCode

retrieve the invite code, which the user join from

Usage

$memberJoinedCode[User ID;Info Type (default code)]

Info Type:

Accepted ones are:

  • code: return the invite code if exists, like Zbhzxf
  • code_url: return the invite url if exists, like https://discord.gg/Zbhzxf
  • type: return the invite type, one of these values (bot-invite, integration, discovery, student-hub, invite-link, invite-link-custom, manual-verification, unknown)
  • inviter: return the inviter id if exists

Example:

Member07/28/2026
!!exec You were invited by $memberJoinedCode[$userID;inviter]

Custom Command Bot 07/28/2026
You were invited by 123456789987654

⏱️ Function Cooldown

This function has a built-in cooldown to help prevent excessive usage.

PropertyValue
⏱️ Duration3 seconds
🆔 Tracked ByServer
🌐 ScopeSearch

Functions with the same Scope share cooldowns based on the same Tracked By value.

💎 Tier 3+ servers bypass this cooldown. See Premium Perksopen in new window.