kbotify
Version:
kaiheila bot framework
30 lines • 994 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.ButtonEventMessage = void 0;
const user_1 = require("../user");
class ButtonEventMessage /* implements Partial<ButtonClickEvent>*/ {
constructor(rawEvent, bot) {
this.msgId = rawEvent.msgId;
this.msgTimestamp = rawEvent.msgTimestamp;
this.channelType = rawEvent.channelType;
this.guildId = rawEvent.guildId;
this.channelId = rawEvent.channelId;
this.targetMsgId = rawEvent.targetMsgId;
this.content = rawEvent.value;
this.userId = rawEvent.userId;
this.user = new user_1.BaseUser(rawEvent.user, bot);
this.client = bot;
}
/**
* use client instead
* @deprecated
* @readonly
* @memberof ButtonEventMessage
*/
get _botInstance() {
return this.client;
}
}
exports.ButtonEventMessage = ButtonEventMessage;
ButtonEventMessage.type = 'buttonClick';
//# sourceMappingURL=button.js.map