diff --git a/src/onebot/action/extends/SetGroupSign.ts b/src/onebot/action/extends/SetGroupSign.ts index 7854e57c..1702c349 100644 --- a/src/onebot/action/extends/SetGroupSign.ts +++ b/src/onebot/action/extends/SetGroupSign.ts @@ -5,7 +5,7 @@ import { FromSchema, JSONSchema } from 'json-schema-to-ts'; const SchemaData = { type: 'object', properties: { - group_id: { type: 'string' }, + group_id: { type: ['string', 'number'] }, }, required: ['group_id'], } as const satisfies JSONSchema; @@ -17,7 +17,7 @@ export class SetGroupSign extends BaseAction { payloadSchema = SchemaData; async _handle(payload: Payload) { - return await this.core.apis.PacketApi.sendGroupSignPacket(payload.group_id); + return await this.core.apis.PacketApi.sendGroupSignPacket(payload.group_id.toString()); } } export class SendGroupSign extends SetGroupSign {