This commit is contained in:
super1207
2024-07-20 18:01:30 +08:00
3 changed files with 11 additions and 3 deletions

View File

@@ -61,6 +61,14 @@ export function encodeCQCode(data: OB11MessageData) {
let result = '[CQ:' + data.type
for (const name in data.data) {
const value = data.data[name]
try {
// Check if the value can be converted to a string
value.toString();
} catch (error) {
// If it can't be converted, skip this name-value pair
// console.warn(`Skipping problematic name-value pair. Name: ${name}, Value: ${value}`);
continue;
}
result += `,${name}=${CQCodeEscape(value)}`
}
result += ']'

View File

@@ -1 +1 @@
export const version = '3.27.2'
export const version = '3.27.3'