Differences
This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision | |||
| guides:apps:discord [2024-06-06 18:18] – add date geek | guides:apps:discord [2026-06-05 16:36] (current) – [AutoHoktey v2] geek | ||
|---|---|---|---|
| Line 17: | Line 17: | ||
| http.SetRequestHeader(" | http.SetRequestHeader(" | ||
| http.Send(' | http.Send(' | ||
| + | </ | ||
| + | |||
| + | Send an embed (requires a JSON library): | ||
| + | <code AutoHotkey> | ||
| + | #Include < | ||
| + | |||
| + | http := ComObject(" | ||
| + | http.Open(" | ||
| + | http.SetRequestHeader(" | ||
| + | http.Send(JSON.Dump({ | ||
| + | embeds: [{ | ||
| + | title: "Some Title", | ||
| + | description: | ||
| + | color: 0xFF00FF, | ||
| + | fields: [ | ||
| + | { | ||
| + | name: "Field 1", | ||
| + | value: "Vaule 1", | ||
| + | inline: true | ||
| + | }, | ||
| + | { | ||
| + | name: "Field 2", | ||
| + | value: "Value 2", | ||
| + | inline: false | ||
| + | } | ||
| + | ], | ||
| + | footer: { | ||
| + | text: " | ||
| + | } | ||
| + | }] | ||
| + | })) | ||
| </ | </ | ||