OctoflowOctoflow
CommandsCore Commands

/resetsecret

Rotate the signing secret for a webhook and receive the new secret via DM.

Generates a new 256-character signing secret for a webhook and sends it to you via DM. You must then update the secret in your GitHub webhook settings — GitHub will reject any events signed with the old secret.

Your DMs must be open from server members. If the bot cannot DM you, the secret is not rotated — nothing changes, so open your DMs and run the command again.

After running this command you must update the Secret field in your GitHub webhook settings. Events will fail HMAC validation and be rejected until you do.

Usage

/resetsecret id:WEBHOOK_ID

Parameters

PropTypeDefault
id
string
-

Permissions

Requires Manage Server (MANAGE_GUILD).

Cooldown

60 seconds (per guild).

After resetting

  1. Open GitHub repository (or organization) → SettingsWebhooks
  2. Click the webhook you registered with Octoflow
  3. Update the Secret field with the new value from your DM
  4. Click Update webhook

Delete the DM after updating.

On this page