Merge branch 'dev' into immediate-finds

This commit is contained in:
Nuckyz 2024-05-08 18:55:48 -03:00
commit f65749e2d4
No known key found for this signature in database
GPG key ID: 440BF8296E1C4AD9
2 changed files with 5 additions and 2 deletions

View file

@ -139,7 +139,7 @@ ${makeCodeblock(enabledPlugins.join(", "))}
const roles = GuildMemberStore.getSelfMember(VENCORD_GUILD_ID)?.roles; const roles = GuildMemberStore.getSelfMember(VENCORD_GUILD_ID)?.roles;
if (!roles || TrustedRolesIds.some(id => roles.includes(id))) return; if (!roles || TrustedRolesIds.some(id => roles.includes(id))) return;
if (IS_UPDATER_DISABLED) { if (!IS_WEB && IS_UPDATER_DISABLED) {
return Alerts.show({ return Alerts.show({
title: "Hold on!", title: "Hold on!",
body: <div> body: <div>

View file

@ -28,9 +28,12 @@ export default definePlugin({
<a <a
className="vc-voice-download" className="vc-voice-download"
href={src} href={src}
download="voice-message.ogg"
onClick={e => e.stopPropagation()} onClick={e => e.stopPropagation()}
aria-label="Download voice message" aria-label="Download voice message"
{...IS_DISCORD_DESKTOP
? { target: "_blank" } // open externally
: { download: "voice-message.ogg" } // download directly (not supported on discord desktop)
}
> >
<this.Icon /> <this.Icon />
</a> </a>