Custom Command
FunctionsDate Functions

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

Member
9/5/2026

!!exec You were invited by $memberJoinedCode[$userID;inviter]

Custom Command
APP
9/5/2026
You were invited by 123456789987654

Function Cooldown

This function has built-in cooldown. Why? Read more about cooldowns here.

  • Cooldown: 3 seconds
  • Tracked By: Server
  • Type: search

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

On this page