discord.listActiveThreads lists active public and private threads visible to the bot.
automations/discord-list-active-threads.automation.ts
Inputs
RequiredguildId. Optional second argument { account } selects the Discord binding.
Output
Returns{ threads: DiscordChannel[], members: DiscordThreadMember[] }.