config: AutoWebhooks disables WebhookURL

Requries "Manage Webhooks" permission for bot account.

Signed-off-by: Jakub Sokołowski <jakub@status.im>
This commit is contained in:
Jakub Sokołowski 2024-03-11 13:18:35 +01:00
parent 3cca7c436c
commit d33f189416
No known key found for this signature in database
GPG Key ID: FE65CD384D5BF7B4

View File

@ -58,8 +58,10 @@ gateway:
- account: "discord.{{ discord_srv.srv }}"
channel: "{{ discord_srv.ch }}"
{% if not matterbridge_bridges['discord'][discord_srv.srv].get('AutoWebhooks', False) %}
options:
WebhookURL: "{{lookup("bitwarden", "Discord/"+discord_srv.srv+"/webhooks", field=discord_srv.ch)}}"
{% endif %}
{% endfor %}
{% endfor %}