CommandsCore Commands
/newhook
Create a new webhook in the current server and receive your webhook URL and secret via DM.
Creates a new webhook and sends your credentials (webhook URL, secret, and ID) via DM so you can register the webhook in GitHub.
Your DMs must be open from server members. If the bot can't DM you, the webhook is created but you won't receive your credentials. In that case, use /resetsecret to regenerate and retry.
Usage
Parameters
| Prop | Type | Default |
|---|---|---|
comment | string | - |
broken | boolean | - |
Permissions
Requires Manage Server (MANAGE_GUILD).
Cooldown
60 seconds (per guild).
What the bot DMs you
The DM also includes any configured backup domain URLs to use if the primary API is unreachable.
Notes
- A maximum of 5 webhooks are allowed per server. Attempting to create a sixth will fail.
- The webhook secret is a 256-character random alphanumeric string.
- Delete the DM after saving your credentials — the secret should not be shared.
- To later rotate the secret, use
/resetsecret.