ODCheckerTranslationRegister_Default 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 ODCheckerTranslationRegister class. It doesn't add any extra features!
This default class is made for the global variable opendiscord.checkers.translation!
Properties
Properties
Methods
constructor() function ➜ api.ODCheckerTranslationRegister_Default
(no description)
delete() function ➜ boolean
Delete the translation for a config checker message/sentence.
View Parameters (2)
type: type ➜"other"- Parameter Description Lorem Ipsum.id: type ➜api.ODCheckerTranslationRegisterOtherIds_Default- Parameter Description Lorem Ipsum.
get() function ➜ string
Get the translation from a config checker message/sentence
View Parameters (2)
type: type ➜"other"- Parameter Description Lorem Ipsum.id: type ➜api.ODCheckerTranslationRegisterOtherIds_Default- Parameter Description Lorem Ipsum.
inherited getAll() function ➜ {id:string, translation:string, type:"message"|"other"}[]
Get all translations
inherited insertTranslationParams() function ➜ string
Insert the translation params into the text.
View Parameters (2)
quickTranslate() function ➜ any
A shortcut to copy translations from the ODLanguageManager to ODCheckerTranslationRegister
View Parameters (4)
manager: class ➜api.ODLanguageManager_Default- Parameter Description Lorem Ipsum.translationId: string ➜string- Parameter Description Lorem Ipsum.type: type ➜"message"|"other"- Parameter Description Lorem Ipsum.id: type ➜api.ODCheckerTranslationRegisterOtherIds_Default|api.ODCheckerTranslationRegisterMessageIds_Default- Parameter Description Lorem Ipsum.
set() function ➜ boolean
Set the translation for a config checker message/sentence. This function also overwrites existing translations!
View Parameters (3)
type: type ➜"other"- Parameter Description Lorem Ipsum.id: type ➜api.ODCheckerTranslationRegisterOtherIds_Default- Parameter Description Lorem Ipsum.translation: string ➜string- Parameter Description Lorem Ipsum.
Defaults
We're still working on this part of the documentation!
Examples
We're still working on this part of the documentation!