You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 22cb9ef
Browse filesBrowse the repository at this point in the historyBrowse files
@@ -104,6 +108,8 @@ export function applyDiscordChanges(config, changes) {
104
108
checkChanges(changes,DISCORD_KEYS,"discord");
105
109
if(changes.idleBehavior!==undefined&&!IDLE_BEHAVIORS.includes(changes.idleBehavior))thrownewTypeError("discord settings: idleBehavior is invalid");
106
110
if(changes.artworkUpload!==undefined&&typeofchanges.artworkUpload!=="boolean")thrownewTypeError("discord settings: artworkUpload must be true or false");
111
+
if(changes.name!==undefined&&(typeofchanges.name!=="string"||changes.name.length>128))thrownewTypeError("discord settings: name must be text of at most 128 characters");
112
+
if(changes.statusDisplayType!==undefined&&!["name","state","details"].includes(changes.statusDisplayType))thrownewTypeError("discord settings: statusDisplayType is invalid");
<input type="text" id="discord-name" name="name" maxlength="128" placeholder="{artist} on {service}" aria-describedby="discord-name-help"></p>
76
+
<p class="hint" id="discord-name-help">What Discord shows in your status, next to your name. Leave it empty for "{artist} on {service}". Fields you can use: {artist}, {title}, {subtitle}, {album}, {year}, {series}, {season}, {episode} and {service} (Spotify, Navidrome and so on). Anything else you type is kept as it is. To show a literal brace, write {{ or }}.</p>
<p class="hint" id="discord-upload-help">Discord can only show a picture from a public address, so this uploads just the cover image to litterbox.catbox.moe, where it is kept for 72 hours. No title, artist, token or server address is sent. Turn it off and a private server's art is never sent to Discord.</p>
0 commit comments