mirror of
https://github.com/LLOneBot/LLOneBot.git
synced 2024-11-22 01:56:33 +00:00
21 lines
609 B
TypeScript
21 lines
609 B
TypeScript
import { BaseAction, Schema } from '../BaseAction'
|
|
import { ActionName } from '../types'
|
|
import { getBuildVersion } from '@/common/utils/misc'
|
|
import { selfInfo } from '@/common/globalVars'
|
|
|
|
interface Payload {
|
|
group_id: number | string
|
|
}
|
|
|
|
export class SendGroupSign extends BaseAction<Payload, null> {
|
|
actionName = ActionName.GoCQHTTP_SendGroupSign
|
|
payloadSchema = Schema.object({
|
|
group_id: Schema.union([Number, String]).required(),
|
|
})
|
|
|
|
async _handle(payload: Payload) {
|
|
await this.ctx.app.ntqqPacketApi.sendGroupSignPacket(selfInfo.uin, payload.group_id.toString())
|
|
return null
|
|
}
|
|
}
|