Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion http.rkt
Original file line number Diff line number Diff line change
Expand Up @@ -270,7 +270,8 @@
message-id
#:content [content null]
#:embed [single-embed null]
#:embeds [embeds #f])
#:embeds [embeds #f]
#:attachments [attachments #f])
(patch "channels" channel-id "messages" message-id)
(define data (make-hash))
(cond
Expand All @@ -284,6 +285,8 @@
(hash-set! data 'embeds (list single-embed))])
(unless (null? content)
(hash-set! data 'content content))
(when attachments
(hash-set! data 'attachments attachments))
#:data (json-payload data))

(define/endpoint (delete-message _client channel-id message-id)
Expand Down
Loading