Sentry
Discord Support ServerPatreon
  • Home
  • Tutorials & Info
    • How to install
    • Integrations
      • Discord Webhook Notifications
    • Global options & placeholders
      • Placeholders for "on-detect"
      • Admin notifications
    • Sentry Modules
      • command-blocker.yml
      • client-blocker.yml
      • anti-vpn.yml
      • ip-whitelist.yml
      • item-control.yml
      • op-protection.yml
      • tab-complete-blocker.yml
      • Upcoming
        • security-patches.yml
        • anti-bot.yml
    • Plugin Commands & Permissions
    • What is 'plugin-data.yml'?
    • Outdated Notification
  • API usage
    • Installing and using the API
Powered by GitBook
On this page
  • Configuration
  • Settings
  • Creating and getting a Discord Webhook link
  • Default file & values
  1. Tutorials & Info
  2. Integrations

Discord Webhook Notifications

PreviousIntegrationsNextGlobal options & placeholders

Last updated 5 months ago

Introduced in v1.0.1-RELEASE, this integration can send discord webhooks whenever Sentry captures something.

In other words, whenever the plugin notifies admins, it will send the exact same notification to a custom Discord Webhook as well.

This is useful if you want to add an extra layer of care to your server and get notified on Discord along with the game.


Configuration

As every other Integration, it is located inside the integrations.yml file.

Settings

The settings section is where you can modify some values to suit your needs.

Firstly, you need to set the webhook-url to your Discord Webhook link.


Creating and getting a Discord Webhook link

First, head to the discord channel where you want your notifications to be sent.

  1. Click on edit channel

  2. Go to "Integrations"

  1. Click on the large blue button "Create Webhook"

  1. Select your newly created Webhook

  2. Customize it as much as you want. Sentry will use your Webhook profile options to send the notifications.

  3. Click on the large grey button "Copy Webhook URL"

  1. Go back to the integrations.yml file, and paste the URL inside the webhook-url

  2. Make sure you enabled the Discord integration.

  1. Restart your server.


Default file & values

Default file & values
# Discord webhook integration
# Sends a message to the specified webhook evertime Sentry catches something.
# In other words, everytime the plugin notifies the admins, will send the same notification to Discord aswell.
discord:
  # If true, enables the discord webhook integration
  enabled: false

  # Sends a webhook notification when the plugin starts. Will ignore the "settings content" and send just the webhook. Default: true
  notify-on-enable: true

  # Webhook Settings, here you can modify the values, remember to copypaste the webhook URL here when you create it on your discord channel!
  settings:
    webhook-url: "" # Set the webhook URL here
    content: "@everyone" # Here you can set any content to be sent alongside the embed, useful when you want to mention someone or some role.