Classes
Mixins
Methods
inner findUser(guild, member) → {Array}
Searches the discord guild for a member.
Parameters:
Name | Type | Description |
---|---|---|
guild |
external:Guild | A list of guilds to initialize leagues with. |
member |
string | external:GuildMember | A name or search string for an inhouse player or their guild member instance. |
The search result in an array containing the user record, discord guild member, and type of match.
Array
async inner loadInhouseStates(guilds, leagues) → {Array.<module:ihl.InhouseState>}
Maps league records to inhouse states.
Parameters:
Name | Type | Description |
---|---|---|
guilds |
Array.<external:Guild> | A list of guilds to initialize leagues with. |
leagues |
Array.<module:db.League> | A list of database league records. |
The inhouse states loaded from league records.
Array.<module:ihl.InhouseState>
async inner loadInhouseStatesFromLeagues(guilds) → {Array.<module:ihl.InhouseState>}
Gets all league records from the database turns them into inhouse states.
Parameters:
Name | Type | Description |
---|---|---|
guilds |
Array.<external:Guild> | A list of guilds to initialize leagues with. |
The inhouse states loaded from all league records.
Array.<module:ihl.InhouseState>
Type Definitions
Events
empty
IHLManager event queue empty event.
EVENT_MATCH_STATS
Event for returning stats from a lobby.
Parameters:
Name | Type | Description |
---|---|---|
lobby |
module:db.Lobby | The lobby with stats. |
ready
IHLManager ready event.