# 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


# group

The group of badges this user has


# user

The user this belongs to

# 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

# 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

# toArray()

Converts this object to an array of strings