Skip to content

Discord

There are two ways to send alerts to Discord:

  • The YipYap Discord app (YipYap Cloud, all plans). An owner or admin adds the app to your Discord server once. Alerts carry Acknowledge and Resolve buttons that work from Discord.
  • Your own Discord bot. You create a bot in the Discord Developer Portal and give YipYap its Bot Token and a Channel ID. Alerts carry an Open in YipYap link instead of buttons. Use this on self-hosted servers.

Only organization owners and admins can add or remove the app.

  1. Go to Settings > Channels and start the Discord connection.
  2. Discord opens. Pick your server and approve the permissions the app asks for.
  3. Discord sends you back to Settings > Channels, where the server is listed as connected.

The app asks Discord for the bot scope with the View Channels, Send Messages, Embed Links and Read Message History permissions, so it can see the channels you allow, post alerts in them and update the messages it posted. It has no message content intent, so it does not receive the messages people write. To keep it out of a channel, deny those permissions for its role on that channel.

Add a channel in Settings > Channels with Add Channel, choose the YipYap Discord app type, then pick the connected server and the Discord channel to post to. Use Test to send a sample alert.

Alerts sent through the YipYap Discord app have Acknowledge and Resolve buttons. Clicking one acknowledges or resolves the alert in YipYap, the same as doing it in the console.

Remove the server from the list in Settings > Channels. YipYap stops posting there for your organization. You can also kick the app from the server in Discord’s server settings; YipYap then stops posting to that server.

These steps also work on self-hosted servers.

  1. In the Discord Developer Portal, create a new application.
  2. Open Bot and reset the token to reveal it. Copy the token.
  3. Open OAuth2, then URL Generator. Select the bot scope and the View Channels and Send Messages permissions.
  4. Open the generated URL, pick your server and authorize the bot.
  5. If the alert channel is private, give the bot’s role access to it in the channel’s permission settings.
  1. In Discord, open User Settings, then Advanced, and turn on Developer Mode.
  2. Right-click the channel and choose Copy Channel ID. The ID is a long number, for example 1234567890.
  1. Go to Settings > Channels and click Add Channel.
  2. Enter a Name, for example “Ops Discord”.
  3. Set Type to Discord.
  4. Paste the token into Bot Token and the ID into Channel ID.
  5. Click Save.
  6. Click Test on the new channel in the list. A sample alert should appear in the Discord channel.

YipYap does not show the bot token again after saving. To change it, edit the channel and paste a new token.

Each alert message shows the severity, the monitor name and the alert message. When they are set on the monitor or service, it also shows the runbook link, the service name, the status of the service’s dependencies and its quick links. It ends with an Open in YipYap link.

Alerts posted through your own Discord bot cannot be acknowledged or resolved from Discord. Discord sends button clicks to the application that posted the message, which is your bot, not YipYap. So these messages have no Acknowledge or Resolve buttons. Instead each one ends with an Open in YipYap link to the alert (a test message links to the alert list).

Open the alert in YipYap to acknowledge or resolve it.

If you would rather not create a bot, use a Discord channel webhook:

  1. In Discord, open the channel settings, then Integrations, and create a webhook. Copy its URL.
  2. In Settings > Channels, click Add Channel and set Type to Webhook.
  3. Paste the URL into URL. Payload Format switches to Discord for Discord webhook URLs.

See Webhooks for details.

If Test fails, check these first. The statuses are the ones Discord returns.

Discord statusLikely cause
401The bot token is wrong or was reset. Paste the current token.
403The bot cannot see or post in the channel. Check View Channels and Send Messages for its role on that channel.
404The channel ID is wrong, or the bot is not in that server.