Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions src/structures/Message.js
Original file line number Diff line number Diff line change
Expand Up @@ -307,6 +307,12 @@ class Message extends Base {
*/
this.links = data.links;

/**
* Indicates if the message is a view once message
* @type {boolean}
*/
this.isViewOnce = data.isViewOnce;

/** Buttons */
if (data.dynamicReplyButtons) {
this.dynamicReplyButtons = data.dynamicReplyButtons;
Expand Down Expand Up @@ -341,6 +347,16 @@ class Message extends Base {
: [];
}

if (this.type === MessageTypes.SCHEDULED_EVENT_CREATION) {
this.eventName = data.eventName;
this.eventStartTime = data.eventStartTime;
this.eventEndTime = data.eventEndTime;
this.eventDescription = data.eventDescription;
this.eventLocation = data.eventLocation;
this.eventJoinLink = data.eventJoinLink;
this.isEventCanceled = data.isEventCanceled;
}

return super._patch(data);
}

Expand Down