Skip to content

Commit 092098f

Browse files
authored
Add polls when editing deferred interaction responses (#7090)
* Add polls when editing deferred interaction responses * changelog * changelog date
1 parent 53c3dc7 commit 092098f

File tree

2 files changed

+11
-0
lines changed

2 files changed

+11
-0
lines changed
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
---
2+
title: "Add Polls when Editing Deferred Interaction Responses"
3+
date: "2024-09-04"
4+
topics:
5+
- "Interactions"
6+
---
7+
8+
You can now create a poll while editing a deferred interaction response with the [Edit Original Interaction Response](#DOCS_INTERACTIONS_RECEIVING_AND_RESPONDING/edit-original-interaction-response) endpoint. Poll away!

docs/resources/Webhook.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -282,11 +282,14 @@ Any provided files will be **appended** to the message. To remove or replace fil
282282
| files[n] \*\* | file contents | the contents of the file being sent/edited |
283283
| payload_json \*\* | string | JSON encoded body of non-file params (multipart/form-data only) |
284284
| attachments \*\* | array of partial [attachment](#DOCS_RESOURCES_MESSAGE/attachment-object) objects | attached files to keep and possible descriptions for new files |
285+
| poll \*\*\* | [poll](#DOCS_RESOURCES_POLL/poll-create-request-object) request object | A poll! |
285286

286287
\* Requires an application-owned webhook.
287288

288289
\*\* See [Uploading Files](#DOCS_REFERENCE/uploading-files) for details.
289290

291+
\*\*\* Polls can only be added when editing a deferred interaction response.
292+
290293
## Delete Webhook Message % DELETE /webhooks/{webhook.id#DOCS_RESOURCES_WEBHOOK/webhook-object}/{webhook.token#DOCS_RESOURCES_WEBHOOK/webhook-object}/messages/{message.id#DOCS_RESOURCES_MESSAGE/message-object}
291294

292295
Deletes a message that was created by the webhook. Returns a `204 No Content` response on success.

0 commit comments

Comments
 (0)