component v2

This commit is contained in:
TotallyTung
2025-06-23 22:04:53 +07:00
committed by GitHub
parent 714f8bd5de
commit 7a2a3d7a05
12 changed files with 250 additions and 1 deletions

View File

@@ -0,0 +1,15 @@
'use strict';
class UnfurledMediaItem {
constructor(data = {}) {
this.url = data.url ?? null;
}
toJSON() {
return {
url: this.url,
};
}
}
module.exports = UnfurledMediaItem;