Fix role id to be a long instead of a string

This commit is contained in:
Kiran Shila
2022-01-13 11:41:15 -08:00
parent 057bb3586e
commit d9705f0e55
3 changed files with 3 additions and 3 deletions

View File

@@ -142,7 +142,7 @@ To skip the build, just download `Doplarr.jar` and `config.edn` from the release
| Environment Variable (Docker) | Config File Keyword | Type | Default Value | Description |
| ----------------------------- | -------------------------- | ------- | ------------- | --------------------------------------------------------------------------------------------------- |
| `DISCORD__MAX_RESULTS` | `:discord/max-results` | Integer | `25` | Sets the maximum size of the search results selection |
| `DISCORD__ROLE_ID` | `:discord/role-id` | String | N/A | The discord role id for users of the bot (omitting this lets everyone on the server use the bot) |
| `DISCORD__ROLE_ID` | `:discord/role-id` | Long | N/A | The discord role id for users of the bot (omitting this lets everyone on the server use the bot) |
| `SONARR__QUALITY_PROFILE` | `:sonarr/quality-profile` | String | N/A | The name of the quality profile to use by default for Sonarr |
| `RADARR__QUALITY_PROFILE` | `:radarr/quality-profile` | String | N/A | The name of the quality profile to use by default for Radarr |
| `SONARR__LANGUAGE_PROFILE` | `:sonarr/language-profile` | String | N/A | The name of the language profile to use by default for Radarr |

View File

@@ -10,7 +10,7 @@
; :sonarr/quality-profile ""
; :radarr/quality-profile ""
; :sonarrr/language-profile ""
; :discord/role-id ""
; :discord/role-id role_id
; :discord/max-results 10
; :overseerr/default-id 1
; :log-level :trace

View File

@@ -20,7 +20,7 @@
; --- Optional settings
(spec/def ::log-level keyword?)
(spec/def :discord/role-id string?)
(spec/def :discord/role-id int?)
(spec/def :discord/max-results #(and (pos-int? %)
(<= % 25)))