diff --git a/app/src/main/java/xyz/vallat/louis/managers/discord/DiscordManager.java b/app/src/main/java/xyz/vallat/louis/managers/discord/DiscordManager.java index ecef565..dc282ec 100644 --- a/app/src/main/java/xyz/vallat/louis/managers/discord/DiscordManager.java +++ b/app/src/main/java/xyz/vallat/louis/managers/discord/DiscordManager.java @@ -68,7 +68,7 @@ public final class DiscordManager { .getReactors(r).any(user -> user.equals(discordClient.getSelf().block())).block()) && Objects.requireNonNull(event.getMessage().block()).getAuthor().isPresent() && !Objects.requireNonNull(event.getMessage().block()).getAuthor().get().equals(discordClient.getSelf().block())) - .flatMap(event -> event.getMessage().flatMap(message -> message.addReaction(reactionAnswers[new Random().nextInt(reactionAnswers.length)]))) + .flatMap(event -> event.getMessage().flatMap(message -> message.addReaction(reactionAnswers[new Random().nextInt(reactionAnswers.length)])).then()) .subscribe(); }