Interface DeeplModule
- All Superinterfaces:
ModuleSimple
Translates messages through DeepL.
-
Method Summary
Modifier and TypeMethodDescriptionconfig()The config section this module reads its settings from.The permission that gates this module.Translates text through DeepL.Methods inherited from interface ModuleSimple
children, isDisable, name, onDisable, onEnable, permissions
-
Method Details
-
config
Integration.Deepl config()Description copied from interface:ModuleSimpleThe config section this module reads its settings from.- Specified by:
configin interfaceModuleSimple- Returns:
- the settings
-
permission
Permission.Integration.Deepl permission()Description copied from interface:ModuleSimpleThe permission that gates this module.- Specified by:
permissionin interfaceModuleSimple- Returns:
- the permission
-
translate
Translates text through DeepL.- 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
-