Skip to content

$findMembers

$findMembers will return all members with similar username.

Usage

$findMembers[userResolver;limit?;type?;force?;format?]

Parameters

FieldTypeDescriptionRequired
userResolverstringQuery of the username the bot will search for.true
limit?numberThe amount of results the bot will return.false
type?stringType of the search query.false
force?boolean1. true
2. false (default)
false
format?stringThe 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:

1
client.command({
2
name: "findMembers",
3
code: `
4
$findMembers[Leref;20;startsWith;true;{position}) {username}#{tag}]
5
`
6
});