Members
- 
    <private, constant> self
- 
    
    Wrapper for logging functions that normally reference SubModule.error and similar.- Source:
- To Do:
- 
		- Obtain reference to SubModule to be able to remove this.
 
 
- 
    <nullable> sqlCon :sql.ConnectionConfig
- 
    
    The object describing the connection with the SQL server.Type:- sql.ConnectionConfig
 
Methods
- 
    <private> __stack()
- 
    
    Gets the stack trace of the current function call.Returns:Error stack for logging.- Type
- Stack
 
- 
    <private> unhandledRejection(args)
- 
    
    Handler for an unhandledRejection or uncaughtException, to prevent the bot from silently crashing without an error.Parameters:Name Type Argument Description args* <repeatable> 
 All information to log. - Source:
 Listens to Events:- Process#event:unhandledRejection
- Process#event:uncaughtException
 
Type Definitions
- 
    commandHandler(msg)
- 
    
    The function to call when a command is triggered.Parameters:Name Type Description msgDiscord~Message The message sent in Discord. - Source:
 
- 
    HGStatGroupUserSelectOptions
- 
    
    Options for fetching a group of user stats.Type:- object
 - Source:
 Properties:Name Type Argument Default Description sortstring <optional> 
 'wins' Column to sort data by. ascendingboolean <optional> 
 false Sort ascending or descending order. limitnumber <optional> 
 10 Limit the number of fetched users. offsetnumber <optional> 
 0 Offset start index of found users. 
- 
    HGStatMetadata
- 
    
    Metadata to store along with a HungryGames~StatGroup object. These values are user-defined and are not necessarily correct and are not trustworthy for any processing.Type:- object
 - Source:
 Properties:Name Type Argument Description namestring <optional> 
 The user-defined name of this stats object. startTimeDate <optional> 
 The timestamp at which this stats object starts to include information. endTimeDate <optional> 
 The timestamp of the last time this object includes information for. createDateDate The timestamp at which this stats object was created. modifiedDateDate The timestamp at which this stats object was last modified. 
- 
    LoginState
- 
    
    The current OAuth2 access information for a single session.- Source:
 Properties:Name Type Argument Description access_tokenstring The current token for api requests. token_typestring The type of token (Usually 'Bearer'). expires_innumber Number of seconds after the token is authorized at which it becomes invalid. refresh_tokenstring Token used to refresh the expired access_token. scopestring The scopes that the access_token has access to. expires_atnumber The unix timestamp when the access_token expires. expiration_datenumber The unix timestamp when we consider the session to have expired, and the session is deleted. sessionstring The 64 byte base64 string that identifies this session to the client. refreshTimeoutTimeout <nullable> 
 The current timeout registered for refreshing the access_token.