$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:

Member08/22/2024
!!exec You were invited by $memberJoinedCode[$userID;inviter]

Custom Command Bot 08/22/2024
You were invited by 123456789987654