UNPKG

@xud6/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) 254 B
const CQTag = require('../CQTag') module.exports = class CQEmoji extends CQTag { constructor (id) { super('emoji', { id }) } get id () { return this.data.id } coerce () { this.data.id = Number(this.data.id) return this } }