2023-01-25 16:10:29 +03:00
|
|
|
/**
|
|
|
|
* @typedef {object} MentionCreatedEventData
|
2023-09-26 18:29:17 +03:00
|
|
|
* @property {import('./Mention')} mention
|
2023-01-25 16:10:29 +03:00
|
|
|
*/
|
|
|
|
|
|
|
|
module.exports = class MentionCreatedEvent {
|
|
|
|
/**
|
|
|
|
* @param {MentionCreatedEventData} data
|
|
|
|
* @param {Date} timestamp
|
|
|
|
*/
|
|
|
|
constructor(data, timestamp) {
|
|
|
|
this.data = data;
|
|
|
|
this.timestamp = timestamp;
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @param {MentionCreatedEventData} data
|
|
|
|
* @param {Date} [timestamp]
|
|
|
|
*/
|
|
|
|
static create(data, timestamp) {
|
|
|
|
return new MentionCreatedEvent(data, timestamp ?? new Date);
|
|
|
|
}
|
|
|
|
};
|