Skip to content
Merged
Show file tree
Hide file tree
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
15 changes: 8 additions & 7 deletions apps/docs/providers/communications/discord.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -38,15 +38,16 @@ After you save the bot token, the **Add to Discord** button appears in Roomote.
Select it and choose the server. The generated installation link requests the
permissions Roomote needs; administrator access is not required.

For tasks started in a server, the bot needs permission to:
For tasks started in a server, the bot needs these permissions:

- view the channel and read message history
- send messages and links
- create public threads and send messages in threads
- view channels
- send messages
- read message history
- embed links
- attach files

Roomote also uses reactions for lightweight acknowledgements when the bot has
permission to add them, but reactions are not required to run tasks.
- create public threads
- send messages in threads
- add reactions

A task started from a normal text or announcement channel runs in a public
thread started on the message that requested it — like a threaded reply — so
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -167,10 +167,9 @@ export function ProviderSetupInstructions({
</InstructionText>
<InstructionText heading="Installation permissions">
Roomote needs View Channels, Send Messages, Read Message History,
Embed Links, Attach Files, Create Public Threads, and Send Messages in
Threads. Add Reactions enables acknowledgements. After you save the
bot token, the Add to Discord button appears and requests these
permissions automatically.
Embed Links, Attach Files, Create Public Threads, Send Messages in
Threads, and Add Reactions. After you save the bot token, the Add to
Discord button appears and requests these permissions automatically.
</InstructionText>
<InstructionText heading="Bot token">
Paste the token below. Roomote derives the bot and application names
Expand Down
41 changes: 41 additions & 0 deletions packages/communication/src/__tests__/discord-provider.test.ts

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions packages/communication/src/discord-provider.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1142,6 +1142,7 @@ export class DiscordCommunicationProvider implements CommunicationProviderAdapte
'read_message_history',
'embed_links',
'attach_files',
'add_reactions',
];
if (DISCORD_CHANNEL_TYPES_FORUM.has(channel.type)) {
requiredPermissions.push('send_messages_in_threads');
Expand Down
Loading