&& message.getAttachments() != null) {
<BUG>for (MessageAttachment attachment:message.getAttachments()) {
</BUG>
String spacing = message.getContent().equals("") ? "" : " ";
<BUG>messageText = Text.join(messageText,
Text.builder(spacing + channelConfig.minecraft.attachmentTemplate)
.color(ColorUtil.getTextColor(channelConfig.minecraft.attachmentColor))
.onClick(TextActions.openUrl(attachment.getUrl()))

.onHover(TextActions.showText(Text.of(channelConfig.minecraft.attachmentHoverTemplate)))

.build());
}</BUG>
}

&& message.getAttachments() != null) {
for (MessageAttachment attachment : message.getAttachments()) {
String spacing = message.getContent().equals("") ? "" : " ";
Text.Builder builder = Text.builder()
.append(TextSerializers.FORMATTING_CODE.deserialize(spacing + channelConfig.minecraft.attachment.template));
if (channelConfig.minecraft.attachment.allowLink)
builder = builder.onClick(TextActions.openUrl(attachment.getUrl()));
if (StringUtils.isNotBlank(channelConfig.minecraft.attachment.hoverTemplate))
builder = builder.onHover(TextActions.showText(Text.of(channelConfig.minecraft.attachment.hoverTemplate)));
messageText = Text.join(messageText, builder.build());
}
}
