Add docs for global trigger events, app mentions#132
Draft
slowcooked99 wants to merge 6 commits into
Draft
Conversation
Comment on lines
+6
to
+10
| Global triggers let your app respond to Reddit events even when those events happen outside the subreddit where your app is installed. | ||
|
|
||
| Currently, Devvit supports one global trigger: | ||
|
|
||
| - `onMentionInCommentCreate` |
There was a problem hiding this comment.
Do you think we should have an example here? onMentionInCommentCreate is carrying a lot of weight (which is a good sign for the api name), but not immediately obvious
pl00h
reviewed
Jun 25, 2026
|
|
||
| # Global Triggers | ||
|
|
||
| Global triggers let your app respond to Reddit events even when those events happen outside the subreddit where your app is installed. |
Contributor
There was a problem hiding this comment.
Let's add something about our allowlist after the first sentence here:
"This feature is for approved apps only. Developers can request access to app mention triggers here"
Also should we use "App Mentions Triggers" rather "Global Triggers" @stacy-qqq?
Contributor
There was a problem hiding this comment.
Yes, I think we should use "App Mentions Triggers".
Question for you @pl00h - how do apps get approved for this? Is it like a gated beta? Do devs need to apply?
Updated terminology from 'Global Triggers' to 'App Mention Triggers' throughout the document. Adjusted descriptions and examples to reflect the new terminology.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
💸 TL;DR
Drafts documentation about global trigger events, specifically for app mentions.
📜 Details
Internal issue: DX-11040
🧪 Testing Steps / Validation
yarn startdocs✅ Checks