
























@@ -6,7 +6,6 @@ import {
66import type { OpenClawConfig, ReplyToMode } from "openclaw/plugin-sdk/config-types";
77import { createConnectedChannelStatusPatch } from "openclaw/plugin-sdk/gateway-runtime";
88import {
9-isNativeCommandsExplicitlyDisabled,
109resolveNativeCommandsEnabled,
1110resolveNativeSkillsEnabled,
1211} from "openclaw/plugin-sdk/native-command-config-runtime";
@@ -52,10 +51,7 @@ import {
5251formatDiscordDeployErrorDetails,
5352formatDiscordDeployErrorMessage,
5453} from "./provider.deploy-errors.js";
55-import {
56-clearDiscordNativeCommands,
57-runDiscordCommandDeployInBackground,
58-} from "./provider.deploy.js";
54+import { runDiscordCommandDeployInBackground } from "./provider.deploy.js";
5955import { createDiscordProviderInteractionSurface } from "./provider.interactions.js";
6056import { runDiscordGatewayLifecycle } from "./provider.lifecycle.js";
6157import { logDiscordStartupPhase as logDiscordStartupPhaseBase } from "./provider.startup-log.js";
@@ -275,10 +271,6 @@ export async function monitorDiscordProvider(opts: MonitorDiscordOpts = {}) {
275271providerSetting: discordCfg.commands?.nativeSkills,
276272globalSetting: cfg.commands?.nativeSkills,
277273});
278-const nativeDisabledExplicit = isNativeCommandsExplicitlyDisabled({
279-providerSetting: discordCfg.commands?.native,
280-globalSetting: cfg.commands?.native,
281-});
282274const useAccessGroups = cfg.commands?.useAccessGroups !== false;
283275const slashCommand = resolveDiscordSlashCommandConfig(discordCfg.slashCommand);
284276const sessionPrefix = "discord:slash";
@@ -505,28 +497,6 @@ export async function monitorDiscordProvider(opts: MonitorDiscordOpts = {}) {
505497});
506498let voiceManager: DiscordVoiceManager | null = null;
507499508-if (nativeDisabledExplicit) {
509-logDiscordStartupPhase({
510- runtime,
511-accountId: account.accountId,
512-phase: "clear-native-commands:start",
513-startAt: startupStartedAt,
514-gateway: lifecycleGateway,
515-});
516-await clearDiscordNativeCommands({
517- client,
518- applicationId,
519- runtime,
520-});
521-logDiscordStartupPhase({
522- runtime,
523-accountId: account.accountId,
524-phase: "clear-native-commands:done",
525-startAt: startupStartedAt,
526-gateway: lifecycleGateway,
527-});
528-}
529-530500if (voiceEnabled) {
531501const { DiscordVoiceManager, DiscordVoiceReadyListener, DiscordVoiceResumedListener } =
532502await loadDiscordVoiceRuntime();
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。