$getMentions
$getMentions will return all mentions of a specific type.
Usage
$getMentions[type?;separator?]Parameters
| Field | Type | Description | Required |
|---|---|---|---|
| type | string | The type of mention. 1. role 2. users | false |
| separator | string | The separator of the mentions, default = ”, “ | false |
Example(s)
This will return all user mentions:
1client.command({2 name: "getMentions",3 code: `4$getMentions[users;, ]5`6});