import { OB11GroupNoticeEvent } from './OB11GroupNoticeEvent';
import { NapCatCore } from 'napcat-core';

export class OB11GroupEssenceEvent extends OB11GroupNoticeEvent {
  notice_type = 'essence';
  message_id: number;
  sender_id: number;
  operator_id: number;
  sub_type: 'add' | 'delete' = 'add';

  constructor (core: NapCatCore, groupId: number, message_id: number, sender_id: number, operator_id: number) {
    super(core, groupId, sender_id);
    this.group_id = groupId;
    this.operator_id = operator_id;
    this.message_id = message_id;
    this.sender_id = sender_id;
  }
}
