()
| 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 () => { |
nothing calls this directly
no outgoing calls
no test coverage detected