@twurple/api
Version:
Interact with Twitch's API.
38 lines (37 loc) • 1.13 kB
JavaScript
import { __decorate } from "tslib";
import { DataObject, rawDataSymbol, rtfm } from '@twurple/common';
/**
* Information about a sent Twitch chat message.
*/
let HelixSentChatMessage = class HelixSentChatMessage extends DataObject {
/**
* The message ID of the sent message.
*/
get id() {
return this[rawDataSymbol].message_id;
}
/**
* If the message passed all checks and was sent.
*/
get isSent() {
return this[rawDataSymbol].is_sent;
}
/**
* The reason code for why the chat message was dropped, if dropped.
*/
get dropReasonCode() {
var _a;
return (_a = this[rawDataSymbol].drop_reason) === null || _a === void 0 ? void 0 : _a.code;
}
/**
* The reason message for why the chat message was dropped, if dropped.
*/
get dropReasonMessage() {
var _a;
return (_a = this[rawDataSymbol].drop_reason) === null || _a === void 0 ? void 0 : _a.message;
}
};
HelixSentChatMessage = __decorate([
rtfm('api', 'HelixSentChatMessage', 'id')
], HelixSentChatMessage);
export { HelixSentChatMessage };