From bbbfa152ba14f37d0cd5686ed4cdcfc7cd83514e Mon Sep 17 00:00:00 2001 From: Hassan Abouelela <47495861+HassanAbouelela@users.noreply.github.com> Date: Thu, 17 Dec 2020 12:48:04 +0300 Subject: Adds Webhook Sending Functionality Builds and sends a discord webhook on form submission. Signed-off-by: Hassan Abouelela <47495861+HassanAbouelela@users.noreply.github.com> --- SCHEMA.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'SCHEMA.md') diff --git a/SCHEMA.md b/SCHEMA.md index 4daa5dd..b55635f 100644 --- a/SCHEMA.md +++ b/SCHEMA.md @@ -33,9 +33,9 @@ In this document: | `WEBHOOK_ENABLED` | The form should notify the webhook. Has no effect if no webhook is set. | ### Meta options -| Field | Description | Example | -| --------- | ----------------------------------- | ------------------------------------------------------------------------------------------ | -| `webhook` | Mapping of webhook url and message. | `"webhook": {"url": "https://discord.com/api/webhooks/id/key", "message": "Hello World!"}` | +| Field | Description | Example | +| --------- | ---------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------- | +| `webhook` | Mapping of webhook url and message. Message can use `_USER_MENTION_` to mention the submitting user. | `"webhook": {"url": "https://discord.com/api/webhooks/id/key", "message": "Hello World! _USER_MENTION_"}` | ### Form question -- cgit v1.2.3