$mentioned
$mentioned
will return the ID of an user of the mention.
Usage
$mentioned[index;returnSelf?]
Parameters
Field | Type | Description | Required |
---|---|---|---|
index | number | The index of the argument. | true |
returnSelf? | boolean | Return the author’s ID if user was not found. | false |
Example(s)
This will return the ID of the first mention if you attempt to mention someone in this command, or else it will return your ID:
1client.command({2 name: "mentioned",3 code: `4 $mentioned[1;true]5 `6});