OctoflowOctoflow

/eventmod create

Create a new event modifier to filter, whitelist, blacklist, or redirect GitHub events on a webhook.

Creates an event modifier on a webhook. Modifiers let you suppress specific GitHub event types, or redirect them to a different Discord channel.

Usage

/eventmod create webhook_id:abc123 events:push,pull_request blacklisted:false whitelisted:true priority:0
git!eventmod create webhook_id:abc123 events:push,pull_request blacklisted:false whitelisted:true

Parameters

PropTypeDefault
webhook_id
string
-
events
string
-
blacklisted
boolean
-
whitelisted
boolean
-
priority
number
-
repo_id
string
-
redirect_channel
channel
-

Permissions

Requires Manage Server (MANAGE_GUILD).

Cooldown

60 seconds (per guild).

Examples

Blacklist noisy events — drop watch and star events entirely:

/eventmod create webhook_id:abc123 events:watch,star blacklisted:true whitelisted:false

Whitelist only CI events — only deliver workflow and check events:

/eventmod create webhook_id:abc123 events:workflow_run,workflow_job,check_run,check_suite blacklisted:false whitelisted:true

Redirect deployments to a separate channel:

/eventmod create webhook_id:abc123 events:deployment,deployment_status blacklisted:false whitelisted:false redirect_channel:#deployments

Notes

  • A maximum of 10 event modifiers are allowed per webhook.
  • Event names must match GitHub's event type identifiers exactly (see the GitHub Events reference).
  • Backticks, extra commas, and double spaces in the events string are stripped automatically.
  • The modifier ID returned by the bot is needed to delete this modifier later.

On this page