Search in sources :

Example 1 with MessageDecoration

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;
}
Also used : MessageDecoration(org.javacord.api.entity.message.MessageDecoration) RestEndpoint(org.javacord.core.util.rest.RestEndpoint)

Aggregations

MessageDecoration (org.javacord.api.entity.message.MessageDecoration)1 RestEndpoint (org.javacord.core.util.rest.RestEndpoint)1