()
| 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}), |
| 39 | undefined, |
| 40 | undefined, |
| 41 | "sticker", |
| 42 | ); |
| 43 | img.classList.add("sticker"); |
| 44 | const hover = new Hover(this.name); |
| 45 | hover.addEvent(img); |
| 46 | img.alt = this.description; |
| 47 | if (!noclick) { |
| 48 | img.onclick = async (e) => { |
no test coverage detected