Class: Grammar

HungryGames~ Grammar


new Grammar()

Grammar related string formatting.
Source:

Methods


<static> formatMultiNames(names [, format])

Format an array of users into names based on options and grammar rules.
Parameters:
Name Type Argument Default Description
names Array.<HungryGames~Player> An array of players to format the names of.
format string <optional>
'username' Setting of how to format the user's name. `username` will use their account name, `mention` will use their ID to format a mention tag, `nickname` will use their custom guild nickname.
Source:
Returns:
The formatted string of names.
Type
string