mirror of
https://github.com/home-assistant/home-assistant.io.git
synced 2025-07-21 08:16:53 +00:00
Discord configuration variable format (#6864)
* Fix configuration variable format Fix configuration variable format. Modify example configuration.yaml snippet to be generic. * Change description wording to be more clear. Change description of 'name' to be clearer what the notifier name will be.
This commit is contained in:
parent
f83175180c
commit
487c4ab95b
@ -23,15 +23,21 @@ To use Discord notifications, add the following to your `configuration.yaml` fil
|
|||||||
```yaml
|
```yaml
|
||||||
# Example configuration.yaml entry
|
# Example configuration.yaml entry
|
||||||
notify:
|
notify:
|
||||||
- name: NOTIFIER_NAME
|
- platform: discord
|
||||||
platform: discord
|
token: YOUR_DISCORD_BOT_TOKEN
|
||||||
token: A1aB2b.C3cD4d-E5eF6f
|
|
||||||
```
|
```
|
||||||
|
|
||||||
Configuration variables:
|
{% configuration %}
|
||||||
|
name:
|
||||||
- **name** (*Optional*): Setting the optional parameter `name` allows multiple notifiers to be created. The default value is `notify`. The notifier will bind to the service `notify.NOTIFIER_NAME`.
|
description: The notifier will bind to the service `notify.NAME`.
|
||||||
- **token** (*Required*): Your bot's token.
|
required: false
|
||||||
|
type: string
|
||||||
|
default: notify
|
||||||
|
token:
|
||||||
|
description: Your bot's token.
|
||||||
|
required: true
|
||||||
|
type: string
|
||||||
|
{% endconfiguration %}
|
||||||
|
|
||||||
### {% linkable_title Setting up the bot %}
|
### {% linkable_title Setting up the bot %}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user