Merge pull request #1447 from jdrhyne/fix/slack-filetype-deprecation

fix(slack): remove deprecated filetype field from files.uploadV2 [AI]
This commit is contained in:
Peter Steinberger
2026-01-22 23:16:26 +00:00
committed by GitHub
2 changed files with 2 additions and 1 deletions

View File

@@ -33,6 +33,7 @@ Docs: https://docs.clawd.bot
### Fixes
- Control UI: ignore bootstrap identity placeholder text for avatar values and fall back to the default avatar. https://docs.clawd.bot/cli/agents https://docs.clawd.bot/web/control-ui
- Slack: remove deprecated `filetype` field from `files.uploadV2` to eliminate API warnings. (#1447)
## 2026.1.21

View File

@@ -94,7 +94,7 @@ async function uploadSlackFile(params: {
file: buffer,
filename: fileName,
...(params.caption ? { initial_comment: params.caption } : {}),
...(contentType ? { filetype: contentType } : {}),
// Note: filetype is deprecated in files.uploadV2, Slack auto-detects from file content
};
const payload: FilesUploadV2Arguments = params.threadTs
? { ...basePayload, thread_ts: params.threadTs }