Discord screen sharing not working?

Kinda new to hyprland and arch in general.

Basically screen sharing simply crashes my client the second I press "go live".

Works perfectly fine when I screen share in firefox or if I record the screen with obs.

I have installed xdg-desktop-portal-hyprland and xdg-desktop-portal-wlr

Running "systemctl --user status xdg-desktop-portal.service" returns

○ xdg-desktop-portal.service - Portal service

Loaded: loaded (/usr/lib/systemd/user/xdg-desktop-portal.service; static)

Active: inactive (dead)

Jan 02 23:21:14 archlinux systemd[1286]: Starting Portal service...

Jan 02 23:21:14 archlinux systemd[1286]: Started Portal service.

The only fix I found is using

XDG_SESSION_TYPE=x11 /usr/bin/discord

to start discord. This makes it so I can start screen sharing, but the screens are simply black.

https://preview.redd.it/qfsbkenbwnae1.png?width=358&format=png&auto=webp&s=83b1224108924d3ce507ee8d2bdb4a541c538d6f