Entity Info
memberID
$memberID
The function $memberID returns the Discord ID of the member who triggered the command.
Syntax
$memberID
Return Value
- Type : Snowflake (numeric string)
- The value of the
member.idcontext variable if the host supplied it, otherwise the ID of the command author (author.id, thenuser.id). - If none of these is available, or the author ID is not a positive integer, the error
Invalid user ID.is raised.
Behavior
$memberIDtakes no arguments.$userIDreadsuser.idfirst, thenauthor.id;$memberIDreadsmember.idfirst, thenauthor.id, thenuser.id. For the triggering user they give the same result.
Examples
Member profile
$title[Member: $memberNick]
$description[
**Member ID:** $memberID
**Permissions:** $memberPerms
]
$color[#5865F2]
Notes
- For the triggering user,
$memberID,$userIDand$authorIDgive the same ID.
Try it
Paste an example into the playground to preview its message (functions that act on Discord are not run), or build the same thing with blocks.