This commit is contained in:
TotallyTung
2025-06-29 11:01:41 +07:00
committed by GitHub
parent df3d768087
commit 1aa4f523ad
3 changed files with 19 additions and 1 deletions

View File

@@ -1,10 +1,20 @@
'use strict';
class UnfurledMediaItem {
/**
*
* @param {*} data
*/
constructor(data = {}) {
/**
* @type {string}
*/
this.url = data.url ?? null;
}
/**
*
* @returns {APIUnfurledMediaItem}
*/
toJSON() {
return {
url: this.url,