ODStatScope_DefaultTicket class
We are still working the API Reference! This page might be incomplete or doesn't contain all details!
Overview
This is a special class that adds type definitions & typescript to the ODStatsManager class. It doesn't add any extra features!
This default class is made for the opendiscord:ticket category in opendiscord.stats!
Methods
Properties
inherited database type ➜ null|api.ODDatabase
Alias to Open Ticket stats database.
inherited id class ➜ api.ODId
The id of this statistics scope.
inherited name string ➜ string
The name of this scope (used in embed title)
inherited ready boolean ➜ boolean
Is this stat scope already initialized?
inherited redirects class ➜ api.ODManagerRedirectHelper
Handle all redirects in this ODManager
Methods
constructor() function ➜ api.ODStatScope_DefaultTicket
(no description)
View Parameters (2)
id: type ➜api.ODValidId- Parameter Description Lorem Ipsum.name: string ➜string- Parameter Description Lorem Ipsum.
inherited protected _change() function ➜ void
Trigger an onChange() event in the parent ODManager of this class.
inherited add() function ➜ boolean
Add data to the manager. The id will be fetched from the data class! You can optionally select to overwrite existing data!
View Parameters (2)
data: type ➜api.ODStat|(api.ODStat[])- Parameter Description Lorem Ipsum.overwrite: boolean ➜boolean- Parameter Description Lorem Ipsum.
inherited changed() function ➜ void
(❌ SYSTEM ONLY!!) Set the callback executed when a value inside this class changes.
exists() function ➜ boolean
Check if data that matches the ODId exists. Returns a boolean.
View Parameters (1)
id: type ➜keyof api.ODStatScopeIds_DefaultTicket- Parameter Description Lorem Ipsum.
get() function ➜ null|api.ODStat
Get data that matches the ODId. Returns the found data.
View Parameters (1)
id: type ➜api.ODValidId- Parameter Description Lorem Ipsum.
inherited getAll() function ➜ api.ODStat[]
Get all data inside this manager
inherited getFiltered() function ➜ api.ODStat[]
Get all data that matches inside the filter function
View Parameters (1)
predicate: function ➜(value:api.ODStat, index:number, array:api.ODStat[]) => unknown- Parameter Description Lorem Ipsum.
inherited getIds() function ➜ api.ODId[]
Get a list of all the ids inside this manager
inherited getLength() function ➜ number
Get the length of the data inside this manager
inherited getRegex() function ➜ api.ODStat[]
Get all data that matches the regex
View Parameters (1)
regex: type