Skip to content

Issue 281 message array support improved#2988

Open
yilmazhasan wants to merge 5 commits into
slackapi:mainfrom
yilmazhasan:issue-281-message-array-support-improved
Open

Issue 281 message array support improved#2988
yilmazhasan wants to merge 5 commits into
slackapi:mainfrom
yilmazhasan:issue-281-message-array-support-improved

Conversation

@yilmazhasan

Copy link
Copy Markdown

Summary

Fixed #281, added support for arrays in the app.message() function by improving #761

Describe the goal of this PR. Mention any related Issue numbers.

These changes are to support multiple items in app.message:

app.message(['hello', 'hi', 'bonjour', /\w{2,8}!?\.?/], async ({ message, say }) => {
  say(`Hello, <@${message.user}> - ${message.text}`);
});

that will be triggered for any message that includes "hello" or "hi" or "bonjour" or a regex pattern that matches.

Requirements

@yilmazhasan yilmazhasan requested a review from a team as a code owner June 22, 2026 13:14
@salesforce-cla

Copy link
Copy Markdown

Thanks for the contribution! Before we can merge this, we need @yilmazhasan to sign the Salesforce Inc. Contributor License Agreement.

@changeset-bot

changeset-bot Bot commented Jun 22, 2026

Copy link
Copy Markdown

⚠️ No Changeset found

Latest commit: d046e81

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Accept an array of patterns for message matching

1 participant