mirror of
https://github.com/hrfee/jfa-go.git
synced 2024-12-22 17:10:10 +00:00
Discord: fix user links
This commit is contained in:
parent
7d698d63e3
commit
168b217553
@ -280,6 +280,7 @@ class user implements User {
|
||||
|
||||
get discord_id(): string { return this._discordID; }
|
||||
set discord_id(id: string) {
|
||||
if (!window.discordEnabled || this._discordUsername == "") return;
|
||||
this._discordID = id;
|
||||
const link = this._discord.getElementsByClassName("discord-link")[0] as HTMLAnchorElement;
|
||||
link.href = `https://discord.com/users/${id}`;
|
||||
@ -466,6 +467,7 @@ class user implements User {
|
||||
this.notify_telegram = user.notify_telegram;
|
||||
this.notify_discord = user.notify_discord;
|
||||
this.notify_email = user.notify_email;
|
||||
this.discord_id = user.discord_id;
|
||||
}
|
||||
|
||||
asElement = (): HTMLTableRowElement => { return this._row; }
|
||||
|
@ -1,4 +1,5 @@
|
||||
import { _get, _post, _delete, toClipboard, toggleLoader, toDateString } from "../modules/common.js";
|
||||
import { newDiscordSearch } from "../modules/discord.js";
|
||||
|
||||
class DOMInvite implements Invite {
|
||||
updateNotify = (checkbox: HTMLInputElement) => {
|
||||
|
Loading…
Reference in New Issue
Block a user