Package cloud.commandframework.captions
Interface CaptionVariableReplacementHandler
- All Known Implementing Classes:
SimpleCaptionVariableReplacementHandler
@API(status=STABLE)
public interface CaptionVariableReplacementHandler
Utility that replaces variables in captions
-
Method Summary
Modifier and TypeMethodDescription@NonNull String
replaceVariables
(@NonNull String string, @NonNull CaptionVariable... variables) Replace the variables in a message and return the result
-
Method Details
-
replaceVariables
Replace the variables in a message and return the result- Parameters:
string
- Message to replace variables invariables
- Variables- Returns:
- Transformed message
-