feat(onebot): implement rename_group_file (OIDB 0x6D6_4)
Add the file-rename slot to the group-file OIDB envelope (req/resp field 5), a RenameGroupFile service mirroring MoveGroupFile, a groupFile.rename() api method, and the rename_group_file action (params group_id/file_id/ current_parent_directory/new_name, NapCat-aligned), replacing the stub. Wire fields (busId=102, parentFolder=current dir, newFileName) verified against NapCat's Oidb.0x6D6 transformer; subCommand 4 cross-checked against the move op (sub 5 on both sides). Serialize + envelope round-trip test locks the pb tags.
This commit is contained in:
8 files changed
+178
-9
No files matched your search
@@ -1029,15 +1029,6 @@ export const actions = [
|
||||
},
|
||||
}),
|
||||
|
||||
defineAction({
|
||||
name: 'rename_group_file',
|
||||
summary: '重命名群文件(未实现)',
|
||||
params: {},
|
||||
run: async () => {
|
||||
return failedResponse(RETCODE.ACTION_FAILED, 'not yet implemented');
|
||||
},
|
||||
}),
|
||||
|
||||
// get_file — 统一文件信息入口。SnowLuma 按 file_id 解析媒体缓存:
|
||||
// 先图片、后语音(两者已带 url 重签与 file_size/file_name)。
|
||||
// 局限:群文件/普通文件的 file_id 无法在此解析——OneBot `get_file` 单参
|
||||
|
||||
Reference in new issue
Block a user