aboutsummaryrefslogtreecommitdiffhomepage
path: root/docs/tips-and-tricks.md
diff options
context:
space:
mode:
Diffstat (limited to 'docs/tips-and-tricks.md')
-rw-r--r--docs/tips-and-tricks.md14
1 files changed, 7 insertions, 7 deletions
diff --git a/docs/tips-and-tricks.md b/docs/tips-and-tricks.md
index 63eeeaf..94167fb 100644
--- a/docs/tips-and-tricks.md
+++ b/docs/tips-and-tricks.md
@@ -145,9 +145,9 @@ Now, you can do that using the `mapping` field in your `message` configuration.
145```yml 145```yml
146message: 146message:
147 url: https://api.chucknorris.io/jokes/random 147 url: https://api.chucknorris.io/jokes/random
148 mapping: 148 mapping:
149 title: 'id' 149 title: 'id'
150 content: 'value' 150 content: 'value'
151``` 151```
152 152
153As you would see, using the ID as a title doesn't seem nice, that's why when a field is empty it would keep the default values, like this: 153As you would see, using the ID as a title doesn't seem nice, that's why when a field is empty it would keep the default values, like this:
@@ -155,8 +155,8 @@ As you would see, using the ID as a title doesn't seem nice, that's why when a f
155```yml 155```yml
156message: 156message:
157 url: https://api.chucknorris.io/jokes/random 157 url: https://api.chucknorris.io/jokes/random
158 mapping: 158 mapping:
159 content: 'value' 159 content: 'value'
160 title: "Chuck Norris Facts!" 160 title: "Chuck Norris Facts!"
161``` 161```
162 162
@@ -165,8 +165,8 @@ and even an error message in case the `url` didn't respond or threw an error:
165```yml 165```yml
166message: 166message:
167 url: https://api.chucknorris.io/jokes/random 167 url: https://api.chucknorris.io/jokes/random
168 mapping: 168 mapping:
169 content: 'value' 169 content: 'value'
170 title: "Chuck Norris Facts!" 170 title: "Chuck Norris Facts!"
171 content: "Message could not be loaded" 171 content: "Message could not be loaded"
172``` 172```