Thinking on it, perhaps the very simplest way to implement this while eliminating cheating would be instead to simply code it as a bot.
I post:
Damage: {roll:3d6}
(or whatever)
The bot replies with the result:
SamSam damage roll result: 11.
Now it’s worthless deleting or editing my post because I can’t delete the bot’s posts. Everyone will see that I made a damage roll and got an 11.
The nicest thing about this is that it doesn’t depend on changing Discourse at all. It’s just a reply bot.