Skip to content

Commit

Permalink
fix message command save entry not being waited for
Browse files Browse the repository at this point in the history
  • Loading branch information
mcmonkey4eva committed Feb 5, 2023
1 parent e523d47 commit b099ac0
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -213,6 +213,6 @@ else if (edit != null) {
else {
return c.sendMessage((MessageCreateData) finalBuilder.build());
}
}).thenApply(r -> DiscordCommandUtils.mapError(scriptEntry, r).onSuccess(m -> scriptEntry.addObject("message", new DiscordMessageTag(finalBot.bot, m))).submit()));
}).thenCompose(r -> DiscordCommandUtils.mapError(scriptEntry, r).map(m -> scriptEntry.addObject("message", new DiscordMessageTag(finalBot.bot, m))).submit()));
}
}

0 comments on commit b099ac0

Please sign in to comment.