You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/_basic/listening_messages.md
+3-3Lines changed: 3 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -9,7 +9,7 @@ order: 1
9
9
10
10
To listen to messages that [your app has access to receive](https://api.slack.com/messaging/retrieving#permissions), you can use the `message()` method which filters out events that aren’t of type `message`.
11
11
12
-
`message()` accepts an argument of type `str` or `RegEx` object that filters out any messages that don’t match the pattern.
12
+
`message()` accepts an argument of type `str` or `re.Pattern` object that filters out any messages that don’t match the pattern.
13
13
14
14
</div>
15
15
@@ -23,7 +23,7 @@ def say_hello(message, say):
23
23
24
24
<detailsclass="secondary-wrapper">
25
25
<summarymarkdown="0">
26
-
<h4class="secondary-header">Using a RegEx pattern</h4>
26
+
<h4class="secondary-header">Using a regular expression pattern</h4>
27
27
</summary>
28
28
29
29
<divclass="secondary-content"markdown="0">
@@ -35,7 +35,7 @@ The `re.compile()` method can be used instead of a string for more granular matc
35
35
```python
36
36
@app.message(re.compile("(hi|hello|hey)"))
37
37
defsay_hello_regex(say, context):
38
-
#RegEx matches are inside of context.matches
38
+
#regular expression matches are inside of context.matches
0 commit comments