mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-08 13:31:25 +00:00
Discord: pass member role IDs to agent route resolution
This commit is contained in:
@@ -220,6 +220,7 @@ export async function preflightDiscordMessage(
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Fresh config for bindings lookup; other routing inputs are payload-derived.
|
// Fresh config for bindings lookup; other routing inputs are payload-derived.
|
||||||
|
const memberRoleIds = params.data.member?.roles?.map((r: { id: string }) => r.id) ?? [];
|
||||||
const route = resolveAgentRoute({
|
const route = resolveAgentRoute({
|
||||||
cfg: loadConfig(),
|
cfg: loadConfig(),
|
||||||
channel: "discord",
|
channel: "discord",
|
||||||
|
|||||||
Reference in New Issue
Block a user