mirror of
https://github.com/misenhower/splatoon3.ink.git
synced 2026-08-28 03:24:31 -05:00
Add alt text to the challenge event post
This commit is contained in:
@@ -34,9 +34,13 @@ export default class ChallengeStatus extends StatusGenerator
|
||||
|
||||
/** @param {ScreenshotHelper} screenshotHelper */
|
||||
async _getMedia(screenshotHelper) {
|
||||
let schedule = await this.getActiveSchedule();
|
||||
|
||||
let media = new Media;
|
||||
media.file = await screenshotHelper.capture('challenges');
|
||||
|
||||
media.altText = schedule.settings.leagueMatchEvent.regulation?.replace(/<br \/>/g, '\n');
|
||||
|
||||
return media;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user