Invites
Who-invited-who stats pulled live from Discord's own invite data - no setup needed, and it works for members who joined long before this feature existed.
For everyone
$invites [@member]
$invites leaderboard [period]
Also $invite as a top-level alias for the whole group, /invites stats/
leaderboard, and $inviteslb/$invitelb as direct shortcuts to the
leaderboard (skip typing "leaderboard"). Bare $invites shows quick stats: how many people
you've invited, and who invited you. leaderboard/lb/top ranks
everyone by real invites credited to them (vanity-URL joins don't count toward anyone).
period is optional: alltime (default), daily,
weekly, or monthly - each a rolling window from right now backwards, not a
calendar boundary. A few natural aliases work too (day, week,
month, 7d, 30d, etc.) - an unrecognized period shows a clear
error listing the valid ones instead of silently defaulting to alltime.
Auto-updating leaderboard
$invites autolb <#channel> [period]
$invites autolbremove [period]
Also /invites autolb/autolbremove. Posts a leaderboard that keeps itself
current - Pixie edits the same message roughly once an hour rather than you having to re-run the
command. One auto-leaderboard per period per server (running autolb again for a period
that already has one replaces it, deleting the old message). Same period options as above -
alltime by default, or daily/weekly/monthly for a
rolling-window board that updates as the window moves. autolbremove stops and removes one
(defaults to the alltime board if no period is given).
Needs Manage Guild (or the View Invite Lookups fake perm)
$invites whoinvited <@member>
$invites invitedwho <@member>
$invites tree [@member]
$invites code <code>
Also $whoinvited/$invitedwho as top-level shortcuts, and
/invites whoinvited/invitedwho/tree/code.
whoinvited shows who invited a member and with what code; invitedwho shows
everyone that member has invited; code shows info about a specific invite code and who
joined through it.
tree renders a dark-themed image showing a member's full invite chain - everyone they
invited, and everyone those people invited, recursively (like a family tree), each node showing that
person's avatar and name connected by lines back to the root. Defaults to your own chain if no member
is given. Caps out at 6 levels deep / 50 people shown for readability - a genuinely huge chain gets
truncated rather than producing an unreadable wall of avatars.
Full admins only
$invites banall <code>
$invites kickall <code>
Also /invites banall/kickall. Bans or kicks everyone currently in the server who joined via a specific invite code, with a confirmation step before anything happens.