don't fetch members from channels you can't see

This commit is contained in:
Mathium05
2026-08-16 16:34:35 -05:00
parent 5f884f0603
commit 7336e38fb3
+1 -1
View File
@@ -1423,7 +1423,7 @@ class Localuser {
if (!guild) return;
const channel = this.focusChannel;
if (!channel) return;
if (!channel || !channel.hasPermission("VIEW_CHANNEL")) return;
if (channel.voice && this.voiceAllowed) {
const div = document.getElementById("sideDiv") as HTMLDivElement;
div.textContent = "";