We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8459306 commit 3c409bfCopy full SHA for 3c409bf
index.js
@@ -39,9 +39,10 @@ const roll = function (rollString, rollCallback = () => {}) {
39
return round(result);
40
};
41
42
-roll.detailed = function (rollString) {
+roll.detailed = function (rollString, rollCallback = () => {}) {
43
const rolls = [];
44
const result = roll(rollString, (roll, result) => {
45
+ rollCallback(roll, result);
46
rolls.push({
47
roll,
48
result
0 commit comments