From 342ea97f907a2a479658e52462fcdcafe8d19105 Mon Sep 17 00:00:00 2001 From: Nathan W Date: Thu, 28 Jun 2018 14:54:07 -0600 Subject: [PATCH] According to the matrix documentation the `name` field is required. (#5384) I am removing this sentence because it contradicts other parts of the documentation. --- source/_components/matrix.markdown | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/_components/matrix.markdown b/source/_components/matrix.markdown index 621fd836cc8..b6e9e9814b9 100644 --- a/source/_components/matrix.markdown +++ b/source/_components/matrix.markdown @@ -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.