Add new reactionTrigger option to Discord guild config that allows reactions
to invoke an agent turn immediately, instead of just queueing a system event.
Modes:
- off (default): existing behavior, reactions queue system events
- own: trigger when reacting to bot's own messages
- all: trigger on any reaction
- allowlist: trigger for reactions from users in guilds.<id>.users
Key implementation details:
- Unique MessageSid format for reactions to avoid inbound deduplication
- Pass token through reaction listeners for reply delivery
- Body format prompts agent to acknowledge the reaction
New files:
- src/discord/monitor/reaction-trigger.ts: dispatch module for reaction triggers
Modified:
- Schema, types, and allow-list helpers for the new config option
- listeners.ts to check trigger mode and dispatch accordingly
- provider.ts to pass token to reaction listeners
- docs/channels/discord.md with documentation