UNPKG

@tsuk1ko/cq-websocket

Version:

A Node SDK for developing QQ chatbots based on WebSocket, which is depending on CoolQ and CQHTTP API plugin.

17 lines (13 loc) 255 B
const CQTag = require('../CQTag'); module.exports = class CQFace extends CQTag { constructor(id) { super('face', { id }); } get id() { return this.data.id; } coerce() { this.data.id = Number(this.data.id); return this; } };