diff --git a/src/api/splatnet3-types.ts b/src/api/splatnet3-types.ts index 1058584..19ee60c 100644 --- a/src/api/splatnet3-types.ts +++ b/src/api/splatnet3-types.ts @@ -900,7 +900,15 @@ interface CoopWeapon { interface FestSchedule { startTime: string; // "2022-09-09T08:00:00Z" endTime: string; // "2022-09-09T10:00:00Z" - festMatchSetting: unknown | null; + festMatchSetting: FestMatchSetting | null; +} + +interface FestMatchSetting { + __isVsSetting: 'FestMatchSetting'; + __typename: 'FestMatchSetting'; + vsStages: VsStage[]; + vsRule: VsRule; + // ... } interface VsStageDetail { diff --git a/src/discord/titles/nintendo/splatoon3.ts b/src/discord/titles/nintendo/splatoon3.ts index 9716483..9ea906d 100644 --- a/src/discord/titles/nintendo/splatoon3.ts +++ b/src/discord/titles/nintendo/splatoon3.ts @@ -218,7 +218,7 @@ export function callback(activity: DiscordRPC.Presence, game: Game, context?: Di monitor.friend.vsMode.id === 'VnNNb2RlLTUx' ? monitor.anarchy_schedule?.bankaraMatchSettings.find(s => s.mode === BankaraMatchMode.OPEN) : null : - monitor.friend.vsMode?.mode === 'FEST' ? monitor.regular_schedule?.regularMatchSetting : + monitor.friend.vsMode?.mode === 'FEST' ? monitor.fest_schedule?.festMatchSetting : monitor.friend.vsMode?.mode === 'LEAGUE' ? monitor.league_schedule?.leagueMatchSetting : monitor.friend.vsMode?.mode === 'X_MATCH' ? monitor.x_schedule?.xMatchSetting : null; @@ -235,7 +235,7 @@ export function callback(activity: DiscordRPC.Presence, game: Game, context?: Di activity.largeImageKey = 'https://fancy.org.uk/api/nxapi/s3/image?' + new URLSearchParams({ a: schedule_setting.vsStages[0].id, b: schedule_setting.vsStages[1].id, - v: '2022092104', + v: '2022092105', }).toString(); activity.largeImageText = schedule_setting.vsStages.map(s => s.name).join('/') + ' | ' + product;