(reason: string, length: number)
| 674 | (headers as any)["x-audit-log-reason"] = reason; |
| 675 | fetch(`${this.info.api}/guilds/${this.guild.id}/members/${this.id}`, { |
| 676 | method: "DELETE", |
| 677 | headers, |
| 678 | }); |
| 679 | } |
| 680 | ban() { |
| 681 | const menu = new Dialog(""); |
| 682 | const form = menu.options.addForm("", (e: any) => { |
| 683 | this.banAPI(e.reason); |
| 684 | menu.hide(); |
| 685 | }); |
| 686 | form.addTitle(I18n.member.ban(this.name, this.guild.properties.name)); |
| 687 | form.addTextInput(I18n.member["reason:"](), "reason"); |
| 688 | menu.show(); |
| 689 | } |