use of org.javacord.api.entity.message.MessageDecoration in project Javacord by BtoBastian.
the class MessageBuilderBaseDelegateImpl method append.
@Override
public void append(String message, MessageDecoration... decorations) {
for (MessageDecoration decoration : decorations) {
strBuilder.append(decoration.getPrefix());
}
strBuilder.append(message);
for (int i = decorations.length - 1; i >= 0; i--) {
strBuilder.append(decorations[i].getSuffix());
}
contentChanged = true;
}
Aggregations