From 0e28612fecd977b08d616b4a2d730cbb9e6ebd9e Mon Sep 17 00:00:00 2001 From: Joel Date: Sat, 20 Feb 2021 02:17:52 +0100 Subject: [PATCH] Added it so that you can have spacers in title by using _ in titles. --- .../zone/themcgamer/discordbot/command/impl/SayCommand.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/discordbot/src/main/java/zone/themcgamer/discordbot/command/impl/SayCommand.java b/discordbot/src/main/java/zone/themcgamer/discordbot/command/impl/SayCommand.java index 9752ffc..7732125 100644 --- a/discordbot/src/main/java/zone/themcgamer/discordbot/command/impl/SayCommand.java +++ b/discordbot/src/main/java/zone/themcgamer/discordbot/command/impl/SayCommand.java @@ -34,7 +34,7 @@ public class SayCommand extends BaseCommand { //TODO a way to add images, and such to the embeds. String description = args.stream().skip(2).collect(Collectors.joining(" ")); EmbedBuilder embedBuilder = EmbedUtils.defaultEmbed(); - embedBuilder.setTitle(args.get(1)); + embedBuilder.setTitle(args.get(1).replace("_", " ")); embedBuilder.setDescription(description); event.getChannel().sendMessage(embedBuilder.build()).queue(); }