invites: add "send to" to dropdown
allows sending to more people after creating the invite. Fixes #444.
This commit is contained in:
@@ -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 () => {};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user