Hi, welcome!
The mod-crown variable name should be replaced by icons-sprite.
I had the same issue before, I think the documentation could be improved in this bit.
Also,
It should be: api.replaceIcon('shield-halved', 'mod-crown');
Hi, welcome!
The mod-crown variable name should be replaced by icons-sprite.
I had the same issue before, I think the documentation could be improved in this bit.
Also,
It should be: api.replaceIcon('shield-halved', 'mod-crown');