Skip to main content
discord.listActiveThreads lists active public and private threads visible to the bot.
automations/discord-list-active-threads.automation.ts

Inputs

Required guildId. Optional second argument { account } selects the Discord binding.

Output

Returns { threads: DiscordChannel[], members: DiscordThreadMember[] }.

Discord behavior

Discord includes private threads only when the bot can access them.