Преглед изворни кода

Ensure auth.clientID is passed as string in Discord configuration

Discord client IDs are numeric (e.g. 12345).
Passing them as integers however, causes the Discord bridge's YAML parser
to parse them as integers and its config schema validation will fail.

Fixes #240 (Github Issue)
pull/246/head
Slavi Pantaleev пре 6 година
родитељ
комит
59d807fca7
1 измењених фајлова са 1 додато и 1 уклоњено
  1. +1
    -1
      roles/matrix-bridge-appservice-discord/defaults/main.yml

+ 1
- 1
roles/matrix-bridge-appservice-discord/defaults/main.yml Прегледај датотеку

@@ -69,7 +69,7 @@ matrix_appservice_discord_configuration_yaml: |
disableJoinLeaveNotifications: false disableJoinLeaveNotifications: false
# Authentication configuration for the discord bot. # Authentication configuration for the discord bot.
auth: auth:
clientID: {{ matrix_appservice_discord_client_id|string }}
clientID: {{ matrix_appservice_discord_client_id|string|to_json }}
botToken: {{ matrix_appservice_discord_bot_token }} botToken: {{ matrix_appservice_discord_bot_token }}
logging: logging:
# What level should the logger output to the console at. # What level should the logger output to the console at.


Loading…
Откажи
Сачувај