mirror of
https://github.com/MrUnknownDE/VRCX.git
synced 2026-04-18 14:23:51 +02:00
Discord profile badge
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user