Added new API comments (part 7)

This commit is contained in:
DJj123dj
2025-01-22 15:13:13 +01:00
parent 09d9b2d265
commit 40bd873a33
4 changed files with 329 additions and 14 deletions
-6
View File
@@ -276,16 +276,10 @@ export class ODRoleOption extends ODOption {
}
export class ODOptionSuffixManager extends ODManager<ODOptionSuffix> {
/**Alias to open ticket global database. */
database: ODDatabase|null = null
constructor(debug:ODDebugger){
super(debug,"ticket suffix")
}
useDatabase(database:ODDatabase){
this.database = database
}
/**Instantly get the suffix from an option. */
getSuffixFromOption(option:ODTicketOption,user:discord.User): string|null {
const suffix = this.getAll().find((suffix) => suffix.option.id.value == option.id.value)