mirror of
https://github.com/samuelthomas2774/nxapi.git
synced 2026-04-25 07:27:19 -05:00
Change presence embed text
This commit is contained in:
parent
98af75441b
commit
01fdfb1fec
|
|
@ -1168,6 +1168,10 @@ class Server extends HttpServer {
|
||||||
|
|
||||||
throw err;
|
throw err;
|
||||||
}
|
}
|
||||||
|
} else if (req_url.searchParams.get('fallback-prevent-navigation') === '1') {
|
||||||
|
res.statusCode = 204;
|
||||||
|
res.end();
|
||||||
|
return;
|
||||||
} else {
|
} else {
|
||||||
throw new ResponseError(404, 'not_found', 'No active title');
|
throw new ResponseError(404, 'not_found', 'No active title');
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -190,7 +190,7 @@ function renderUserTitleEmbedPartialSvg(
|
||||||
<rect x="255" y="${playing_text_offset}" width="10" height="10" fill="${colours.online}"
|
<rect x="255" y="${playing_text_offset}" width="10" height="10" fill="${colours.online}"
|
||||||
stroke="${colours.online_border}" stroke-width="1" rx="1" ry="1" stroke-linejoin="round"
|
stroke="${colours.online_border}" stroke-width="1" rx="1" ry="1" stroke-linejoin="round"
|
||||||
/>
|
/>
|
||||||
<text x="272" y="${playing_text_offset + 10}" fill="${colours.online}" font-size="14" font-family="${font_family}" font-weight="400" mask="url(#mask-out)">Playing</text>
|
<text x="272" y="${playing_text_offset + 10}" fill="${colours.online}" font-size="14" font-family="${font_family}" font-weight="400" mask="url(#mask-out)">Online</text>
|
||||||
|
|
||||||
<text x="255" y="${title_name_text_offset}" fill="${colours.text}" font-size="14" font-family="${font_family}" font-weight="400" mask="url(#mask-out)">${game.name}</text>
|
<text x="255" y="${title_name_text_offset}" fill="${colours.text}" font-size="14" font-family="${font_family}" font-weight="400" mask="url(#mask-out)">${game.name}</text>
|
||||||
` + (description ? htmlentities`
|
` + (description ? htmlentities`
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user