Skip to content

Commit 006382c

Browse files
authored
Merge pull request #400 from danthe1st/fix-ban-info
add configurable text to ban DM
2 parents f011b27 + 1bec0d0 commit 006382c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/net/javadiscord/javabot/systems/moderation/ModerationService.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -224,7 +224,7 @@ public void removeTimeout(Member member, String reason, Member removedBy, Messag
224224
*/
225225
public void ban(User user, String reason, Member bannedBy, MessageChannel channel, boolean quiet) {
226226
MessageEmbed banEmbed = buildBanEmbed(user, bannedBy, reason);
227-
user.openPrivateChannel().flatMap(privateChannel -> privateChannel.sendMessageEmbeds(banEmbed)).queue(success -> {
227+
user.openPrivateChannel().flatMap(privateChannel -> privateChannel.sendMessageEmbeds(banEmbed).setContent(moderationConfig.getBanMessageText())).queue(success -> {
228228
banAndSendGuildNotifications(user, reason, bannedBy, channel, quiet, banEmbed);
229229
}, err-> {
230230
banAndSendGuildNotifications(user, reason, bannedBy, channel, quiet, banEmbed);

0 commit comments

Comments
 (0)