diff --git a/config/discord.json.example b/config/discord.json.example index 6b10ac6c..939a139c 100644 --- a/config/discord.json.example +++ b/config/discord.json.example @@ -3,7 +3,8 @@ "name": "MS", "enable": true, "data": { - "token": "Ma7XBvzRERK3gQdkX4dkb3OQ.6aaGmJ.rvFiiVrzG4VXHHL3LyhZYhpWdG3Ph_if9aKz5E" + "token": "Ma7XBvzRERK3gQdkX4dkb3OQ.6aaGmJ.rvFiiVrzG4VXHHL3LyhZYhpWdG3Ph_if9aKz5E", + "applicationId": "8190211179716453570" } } ] diff --git a/docsite/docs/configuration/clients/discord.mdx b/docsite/docs/configuration/clients/discord.mdx index 35432da0..ae4d8fca 100644 --- a/docsite/docs/configuration/clients/discord.mdx +++ b/docsite/docs/configuration/clients/discord.mdx @@ -95,6 +95,7 @@ You can customize this fallback image with ENV `DISCORD_ARTWORK_DEFAULT_URL` or | Environmental Variable | Required? | Default | Description | | :---------------------------- | --------- | ------- | :--------------------------------------------------------------------------------------------------------------- | | `DISCORD_TOKEN` | Yes | | User Token acquired from an active Discord sessions | + | `DISCORD_APPLICATION_ID` | Yes | | Application ID for user with album art | | `DISCORD_ARTWORK` | No | | A boolean indicating if external artwork URLs should be used. Or a comma-separated list of allowed domains | | `DISCORD_ARTWORK_DEFAULT_URL` | No | | A URL of an image to use as a fallback if the album art URL cannot be used. Or `false` to use discord's default. | \ No newline at end of file diff --git a/src/backend/scrobblers/ScrobbleClients.ts b/src/backend/scrobblers/ScrobbleClients.ts index 134f584a..e443ed5b 100644 --- a/src/backend/scrobblers/ScrobbleClients.ts +++ b/src/backend/scrobblers/ScrobbleClients.ts @@ -303,6 +303,7 @@ export default class ScrobbleClients { const discord = { token: process.env.DISCORD_TOKEN, artwork: process.env.DISCORD_ARTWORK, + applicationId: process.env.DISCORD_APPLICATION_ID, artworkDefaultUrl: process.env.DISCORD_ARTWORK_DEFAULT_URL } if (!Object.values(discord).every(x => x === undefined)) {