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

Method addHTML

src/webpage/guild.ts:1113–1120  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1111 opt.addText(ban.user.username);
1112 if (ban.reason) opt.addText(I18n.guild.banReason(ban.reason));
1113 //FIXME the API sends back the wrong response, so I don't have this info
1114 /*
1115 const moreInfo = (await (
1116 await fetch(this.info.api + "/guilds/" + this.id + "/bans/" + ban.user.id, {
1117 headers: this.headers,
1118 })
1119 ).json()) as addInfoBan;
1120 const userWhoBanned = await User.resolve(moreInfo.executor_id, this.localuser);
1121 opt.addHTMLArea(userWhoBanned.createWidget(this));
1122 //*/
1123 opt.addButtonInput("", I18n.user.unban(ban.user.username), async () => {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected