I'm new to using APIs but I found this solution: !setattr --sel --silent --replace --advantagetoggle|'{{query=1}} {{advantage=1}} {{r2=\lbrak\lbrak\at{d20}' --rtype|'\at{advantagetoggle}' On this post . The problem is that 1/20 times it works great, the other 19 times it changes the selected/highlighted button to advantage but it only rolls with advantage on attack rolls