diff --git a/src/main/java/commands/EmojiPurgeCommand.java b/src/main/java/commands/EmojiPurgeCommand.java index 2402d6d..1599154 100644 --- a/src/main/java/commands/EmojiPurgeCommand.java +++ b/src/main/java/commands/EmojiPurgeCommand.java @@ -94,8 +94,8 @@ private CompletableFuture> clearReactionsFromChannel(Arra })); }); return CompletableFuture.allOf(completedRemovalFutures.toArray(new CompletableFuture[0])).thenCompose(aVoid -> - //Add delete emoji when done - progressMessage.edit(progressMessage.getContent() + "\nDone!").thenCompose(aVoid1 -> StatisticsCommand.addCancelReactToMessage(progressMessage).thenApply(aVoid2 -> new Pair<>(messagesToClear, emojis)))); + //Hack to get display to work correctly + progressMessage.edit("Removing " + emojis + " emojis from " + messagesToClear + " messages! " + messagesToClear + "/" + messagesToClear + " (" + df.format((double) messagesToClear / messagesToClear * 100) + "%)" + "\nDone!").thenCompose(aVoid1 -> StatisticsCommand.addCancelReactToMessage(progressMessage).thenApply(aVoid2 -> new Pair<>(messagesToClear, emojis)))); } /**