MCPcopy Create free account
hub / github.com/MathMan05/Fermi / constructor

Method constructor

src/webpage/sticker.ts:27–35  ·  view source on GitHub ↗
(json: stickerJson, owner: Guild | Localuser)

Source from the content-addressed store, hash-verified

25 return this.owner.localuser;
26 }
27 constructor(json: stickerJson, owner: Guild | Localuser) {
28 super(json.id);
29 this.name = json.name;
30 this.type = json.type;
31 this.format_type = json.format_type;
32 this.owner = owner;
33 this.tags = json.tags;
34 this.description = json.description || "";
35 }
36 getHTML(noclick: boolean): HTMLElement {
37 const img = createImg(
38 this.owner.info.cdn + "/stickers/" + this.id + ".webp" + new CDNParams({expectedSize: 160}),

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected