Discord profile badge

This commit is contained in:
Natsumi
2026-02-10 16:52:35 +13:00
parent 2265def591
commit cb99d03f98
8 changed files with 62 additions and 2 deletions

View File

@@ -421,6 +421,17 @@ function openExternalLink(link) {
});
}
function openDiscordProfile(discordId) {
if (!discordId) {
toast.error('No Discord ID provided!');
return;
}
AppApi.OpenDiscordProfile(discordId).catch((err) => {
console.error('Failed to open Discord profile:', err);
toast.error('Failed to open Discord profile!');
});
}
/**
*
* @param {object} ref
@@ -537,6 +548,7 @@ export {
buildTreeData,
replaceBioSymbols,
openExternalLink,
openDiscordProfile,
getBundleDateSize,
openFolderGeneric,
debounce