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

Method timeoutAPI

src/webpage/member.ts:676–686  ·  view source on GitHub ↗
(reason: string, length: number)

Source from the content-addressed store, hash-verified

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 }

Callers 1

timeoutMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected