feat(onebot): support choosing animated system faces
Send available face animations by default and accept large=false for the small representation. Preserve the sticker business type when encoding animated faces. Fixes #483
This commit is contained in:
8 files changed
+64
-22
No files matched your search
@@ -141,7 +141,7 @@ export const ELEMENT_MANIFEST = {
|
||||
},
|
||||
face: {
|
||||
directions: { D: 'yes', S: 'yes', P: 'yes', W: 'yes' },
|
||||
fields: fieldsFor<'face'>()(['faceId']),
|
||||
fields: fieldsFor<'face'>()(['faceId', 'large']),
|
||||
requiredFields: ['faceId'],
|
||||
},
|
||||
reply: {
|
||||
@@ -258,7 +258,7 @@ const NUMBER_FIELDS: ReadonlySet<string> = new Set([
|
||||
'width', 'height', 'emojiPackageId', 'sceneType', 'forwardTSum',
|
||||
'picFormat', 'videoFormat', 'voiceFormat',
|
||||
]);
|
||||
const BOOLEAN_FIELDS: ReadonlySet<string> = new Set(['flash', 'noByteFallback']);
|
||||
const BOOLEAN_FIELDS: ReadonlySet<string> = new Set(['flash', 'noByteFallback', 'large']);
|
||||
|
||||
function throwValidation(
|
||||
code: MessageElementValidationCode,
|
||||
|
||||
Reference in new issue
Block a user