According to the matrix documentation the name field is required. (#5384)

I am removing this sentence because it contradicts other parts of the
documentation.
This commit is contained in:
Nathan W 2018-06-28 14:54:07 -06:00 committed by Franck Nijhof
parent 918c267aff
commit 342ea97f90

View File

@ -79,7 +79,7 @@ commands:
### {% linkable_title Event Data %}
If a command is triggered, a `matrix_command` event is fired. The event contains the name of the command in the `name` field. If the command is a word command that has no name set, the `name` field contains the word instead.
If a command is triggered, a `matrix_command` event is fired. The event contains the name of the command in the `name` field.
If the command is a word command, the `data` field contains a list of the command's arguments, i.e., everything that stood behind the word, split at spaces. If the command is an expression command, the `data` field contains the [group dictionary](https://docs.python.org/3.6/library/re.html?highlight=re#re.match.groupdict) of the regular expression that matched the message.