Skip to content

Commit

Permalink
Feature I needed
Browse files Browse the repository at this point in the history
  • Loading branch information
duncte123 committed Mar 31, 2024
1 parent a8d720e commit 16eaab8
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions src/main/java/me/duncte123/botcommons/messaging/MessageConfig.java
Original file line number Diff line number Diff line change
Expand Up @@ -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
*
Expand Down

0 comments on commit 16eaab8

Please sign in to comment.