From 16eaab846417929e2140bf263f749a19d43a4c88 Mon Sep 17 00:00:00 2001 From: duncte123 Date: Sun, 31 Mar 2024 11:36:04 +0200 Subject: [PATCH] Feature I needed --- .../botcommons/messaging/MessageConfig.java | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/src/main/java/me/duncte123/botcommons/messaging/MessageConfig.java b/src/main/java/me/duncte123/botcommons/messaging/MessageConfig.java index e353b2a..2b2b540 100644 --- a/src/main/java/me/duncte123/botcommons/messaging/MessageConfig.java +++ b/src/main/java/me/duncte123/botcommons/messaging/MessageConfig.java @@ -462,6 +462,20 @@ public MessageCreateBuilder getMessageBuilder() { return this.messageBuilder; } + /** + * Allows you to override the message builder + * + * @param messageBuilder + * the new message builder to use + * + * @return The builder instance, useful for chaining + */ + public Builder setMessageBuilder(MessageCreateBuilder messageBuilder) { + this.messageBuilder = messageBuilder; + + return this; + } + /** * Applies a configuration to the message builder *