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

Method kickAPI

src/webpage/member.ts:687–694  ·  view source on GitHub ↗
(reason: string)

Source from the content-addressed store, hash-verified

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 });

Callers 1

kickMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected