# Badges
The list of badges of a user
# Constructor
new Badges(client, user, data);
PARAMETER | TYPE | DESCRIPTION | OPTIONAL |
---|---|---|---|
client | Client | The client that instantiated this | No |
user | User or ClientUser | The user this belongs to | No |
data | APIData | The badges data | No |
# Properties
# client
The client that instantiated this
- Type: Client
# group
The group of badges this user has
# user
The user this belongs to
- Type: User or ClientUser
# Methods
# any(option)
Checks if the user has a badge or any of the given badges
PARAMETER | TYPE | DESCRIPTION | OPTIONAL |
---|---|---|---|
option | BadgeName or Array <BadgeName> | The badge(s) for check | No |
- Return: Boolean
# has(option)
Checks if the user has a badge or all the given badges
PARAMETER | TYPE | DESCRIPTION | OPTIONAL |
---|---|---|---|
option | BadgeName or Array <BadgeName> | The badge(s) for check | No |
- Return: Boolean
# toArray()
Converts this object to an array of strings