From d2af4438632d8dbcb07041e9322d997570ff0ef3 Mon Sep 17 00:00:00 2001 From: Fin Date: Sun, 27 Oct 2024 14:47:40 +1000 Subject: [PATCH] Fix sample snippet incorrectly checking webhook type --- docs/events/Webhook_Events.mdx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/events/Webhook_Events.mdx b/docs/events/Webhook_Events.mdx index 86f6986a2b..5a65f25059 100644 --- a/docs/events/Webhook_Events.mdx +++ b/docs/events/Webhook_Events.mdx @@ -51,7 +51,7 @@ To properly acknowledge a `PING` payload, return a `204` response with no body: ```py @app.route('/', methods=['POST']) def my_command(): - if request.json["type"] == 'PING': + if request.json["type"] == 0: return Response(status=204) ```