Interface YandexModule
- All Superinterfaces:
ModuleSimple
Translates messages through Yandex Translate.
-
Method Summary
Modifier and TypeMethodDescriptionconfig()The config section this module reads its settings from.The permission that gates this module.Translates text through Yandex.Methods inherited from interface ModuleSimple
children, isDisable, name, onDisable, onEnable, permissions
-
Method Details
-
config
Integration.Yandex config()Description copied from interface:ModuleSimpleThe config section this module reads its settings from.- Specified by:
configin interfaceModuleSimple- Returns:
- the settings
-
permission
Permission.Integration.Yandex permission()Description copied from interface:ModuleSimpleThe permission that gates this module.- Specified by:
permissionin interfaceModuleSimple- Returns:
- the permission
-
translate
Translates text through Yandex.- Parameters:
sender- who askedsource- the language to translate from, or an empty string to detect ittarget- the language to translate intotext- the text- Returns:
- the translation, or the original text on failure
-