new WavedashMedal(id, achievement, name, description, icon, src)wavedash.js:72Create a WavedashMedal and add it to the list of medals
idnumberThe unique identifier of the medal, as for any Medal
achievementstringThe identifier of its Wavedash achievement, as made with the Wavedash CLI
namestringName of the medal
descriptionstring optionalDescription of the medal
iconstring optionalIcon for the medal
srcstring optionalImage location for the medal
const medal_finish = new WavedashMedal(0, 'ACH_01_FINISH', 'Finish', 'Finish a level');
medal_finish.unlock(); // Wavedash's toast on Wavedash, the engine's popup anywhere else