mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-11 04:14:32 +00:00
refactor!: rename chat providers to channels
This commit is contained in:
@@ -56,7 +56,7 @@ export async function handleDiscordAction(
|
||||
cfg: ClawdbotConfig,
|
||||
): Promise<AgentToolResult<unknown>> {
|
||||
const action = readStringParam(params, "action", { required: true });
|
||||
const isActionEnabled = createActionGate(cfg.discord?.actions);
|
||||
const isActionEnabled = createActionGate(cfg.channels?.discord?.actions);
|
||||
|
||||
if (messagingActions.has(action)) {
|
||||
return await handleDiscordMessagingAction(action, params, isActionEnabled);
|
||||
|
||||
Reference in New Issue
Block a user