modifier.cjs 855 B

1234567891011121314151617181920212223242526272829303132333435
  1. "use strict";
  2. Object.defineProperty(exports, "__esModule", { value: true });
  3. exports.RemoveMessage = void 0;
  4. const base_js_1 = require("./base.cjs");
  5. /**
  6. * Message responsible for deleting other messages.
  7. */
  8. class RemoveMessage extends base_js_1.BaseMessage {
  9. constructor(fields) {
  10. super({
  11. ...fields,
  12. content: "",
  13. });
  14. /**
  15. * The ID of the message to remove.
  16. */
  17. Object.defineProperty(this, "id", {
  18. enumerable: true,
  19. configurable: true,
  20. writable: true,
  21. value: void 0
  22. });
  23. this.id = fields.id;
  24. }
  25. _getType() {
  26. return "remove";
  27. }
  28. get _printableFields() {
  29. return {
  30. ...super._printableFields,
  31. id: this.id,
  32. };
  33. }
  34. }
  35. exports.RemoveMessage = RemoveMessage;