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

Method buildhtml

src/webpage/message.ts:1721–1742  ·  view source on GitHub ↗
(premessage?: Message | undefined, dupe = false)

Source from the content-addressed store, hash-verified

1719
1720 reaction.onclick = (_) => {
1721 this.reactionToggle(new Emoji(thing.emoji, this.guild));
1722 };
1723 }
1724 if (func) func();
1725 }
1726 reactionAdd(data: {name: string; id?: string}, member: Member | {id: string}) {
1727 for (const thing of this.reactions) {
1728 if (thing.emoji.name === data.name || (thing.emoji.id === data.id && data.id)) {
1729 thing.count++;
1730 if (member.id === this.localuser.user.id) {
1731 thing.me = true;
1732 }
1733 this.updateReactions();
1734 return;
1735 }
1736 }
1737 this.reactions.push({
1738 count: 1,
1739 emoji: data,
1740 me: member.id === this.localuser.user.id,
1741 });
1742 this.updateReactions();
1743 }
1744 reactionRemove(data: {name: string; id?: string}, id: string) {
1745 for (const i in this.reactions) {

Callers 5

makeFakeMessageMethod · 0.95
genPageMethod · 0.80
setUpInfiniteScrollerMethod · 0.80
pinnedClickMethod · 0.80
makeHTMLMethod · 0.80

Calls 4

generateMessageMethod · 0.95
messageeventsMethod · 0.95
destroyFakeMessageMethod · 0.80
errorMethod · 0.80

Tested by

no test coverage detected