invites: add "send to" to dropdown

allows sending to more people after creating the invite. Fixes #444.
This commit is contained in:
Harvey Tindall
2025-12-05 19:51:42 +00:00
parent 5fa528fd2d
commit 556e1411f4
6 changed files with 188 additions and 115 deletions
+3 -1
View File
@@ -10,7 +10,9 @@ export interface DiscordUser {
var listeners: { [buttonText: string]: (event: CustomEvent) => void } = {};
export function newDiscordSearch(title: string, description: string, buttonText: string, buttonFunction: (user: DiscordUser, passData: string) => void): (passData: string) => void {
export type DiscordSearch = (passData: string) => void;
export function newDiscordSearch(title: string, description: string, buttonText: string, buttonFunction: (user: DiscordUser, passData: string) => void): DiscordSearch {
if (!window.discordEnabled) {
return () => {};
}