$findMembers
$findMembers will return all members with similar username.
Usage
$findMembers[userResolver;limit?;type?;force?;format?]Parameters
| Field | Type | Description | Required |
|---|---|---|---|
| userResolver | string | Query of the username the bot will search for. | true |
| limit? | number | The amount of results the bot will return. | false |
| type? | string | Type of the search query. | false |
| force? | boolean | 1. true 2. false (default) | false |
| format? | string | The format the bot will return the found users (listed below). | false |
Parameters for the format argument
- {position} -> returns the position
- {id} -> returns the user ID
- {username} -> returns the username
- {nick} -> returns the nickname
- {tag} -> returns the user discriminator
Example(s)
This will return twenty members with Leref in their username:
1client.command({2 name: "findMembers",3 code: `4 $findMembers[Leref;20;startsWith;true;{position}) {username}#{tag}]5 `6});