mirror of
https://github.com/captbaritone/webamp.git
synced 2026-07-22 09:37:17 +00:00
19 lines
368 B
TypeScript
19 lines
368 B
TypeScript
import { Ctx } from "..";
|
|
|
|
/**
|
|
* Send a message to the admin of the site. Currently this appears in Discord.
|
|
* @gqlMutationField */
|
|
export async function send_feedback(
|
|
req: Ctx,
|
|
message: string,
|
|
email?: string | null,
|
|
url?: string | null
|
|
): Promise<boolean> {
|
|
req.notify({
|
|
type: "GOT_FEEDBACK",
|
|
url,
|
|
message,
|
|
email,
|
|
});
|
|
return true;
|
|
}
|