(reason: string)
| 685 | }); |
| 686 | form.addTitle(I18n.member.ban(this.name, this.guild.properties.name)); |
| 687 | form.addTextInput(I18n.member["reason:"](), "reason"); |
| 688 | menu.show(); |
| 689 | } |
| 690 | addRole(role: Role) { |
| 691 | const roles = [...this.roleIds]; |
| 692 | roles.push(role.id); |
| 693 | fetch(this.info.api + "/guilds/" + this.guild.id + "/members/" + this.id, { |
| 694 | method: "PATCH", |
| 695 | headers: this.guild.headers, |
| 696 | body: JSON.stringify({roles}), |
| 697 | }); |