Browse Source

feat(discord): Add alert rule pill to Discord integrations (#56957)

Closes https://github.com/getsentry/sentry/issues/54224

![Screenshot 2023-09-26 at 12 49 32
PM](https://github.com/getsentry/sentry/assets/22582037/bd91fa6f-7517-4ff3-95f5-ac210fdbe35a)
Julia Hoge 1 year ago
parent
commit
50a53eec57
1 changed files with 5 additions and 2 deletions
  1. 5 2
      src/sentry/integrations/discord/integration.py

+ 5 - 2
src/sentry/integrations/discord/integration.py

@@ -30,7 +30,10 @@ FEATURES = [
         "Assign, ignore, and resolve issues by interacting with chat messages.",
         IntegrationFeatures.CHAT_UNFURL,
     ),
-    # We'll add IntegrationFeatures.ALERT_RULE here in milestone 2
+    FeatureDescription(
+        "Configure rule based Discord notifications to automatically be posted into a specific channel.",
+        IntegrationFeatures.ALERT_RULE,
+    ),
 ]
 
 metadata = IntegrationMetadata(
@@ -95,7 +98,7 @@ class DiscordIntegrationProvider(IntegrationProvider):
     name = "Discord"
     metadata = metadata
     integration_cls = DiscordIntegration
-    features = frozenset([IntegrationFeatures.CHAT_UNFURL])
+    features = frozenset([IntegrationFeatures.CHAT_UNFURL, IntegrationFeatures.ALERT_RULE])
     requires_feature_flag = True  # remove this when we remove the discord feature flag
 
     # https://discord.com/developers/docs/topics/oauth2#shared-resources-oauth2-scopes