Create a thread in a Discord forum channel with an opening message. Returns the new thread ID. Forum channels in Discord are channel containers where each post is a thread (a 'forum post'). Use this script to start a new forum post programmatically - useful for opening tickets, support threads, bug reports, or any cross-tool bridge that creates a Discord-side thread keyed to an external resource. For messages in the resulting thread (replies), use the existing 'Send message to Discord channel using Discord Bot' script (https://hub.windmill.dev/scripts/discord/8859/) - the thread ID returned here is what you pass as channelId. The configuration object follows the existing 'discord_bot_configuration' resource convention from the Hub. Per that convention, the public_key field is used as the bot token (https://discord.com/developers/applications -> Bot -> Reset Token). For a complete Teams to Discord bridge using this script, see the Windmill blog post: https://www.windmill.dev/blog/teams-discord-bridge
1 | |
2 | |
3 | |
4 | |
5 | |
6 | |
7 | |
8 | |
9 | |
10 | |
11 | |
12 | |
13 | |
14 | |
15 | |
16 | |
17 | |
18 | |
19 | |
20 | |
21 | |
22 | |
23 | |
24 | |
25 | |
26 | |
27 | |
28 | |
29 | |
30 | |
31 | |
32 | |
33 | |
34 | |
35 | |
36 | |
37 | |
38 | |
39 | |
40 | |
41 | |
42 | |
43 | |
44 | |
45 | |
46 | |