discord: modularize user-facing code

will be done for others too, code for discord account linking in form
and userpage is now in ts/modules/account-linking.ts as a configurable
class.
This commit is contained in:
Harvey Tindall
2023-06-19 11:58:09 +01:00
parent cf7983ca11
commit 765a749959
4 changed files with 185 additions and 121 deletions
-5
View File
@@ -221,8 +221,3 @@ export function insertText(textarea: HTMLTextAreaElement, text: string) {
textarea.focus();
}
}
export interface DiscordInvite {
invite: string;
icon: string;
}