aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorV <vendicated@riseup.net>2023-06-30 15:55:20 +0200
committerV <vendicated@riseup.net>2023-06-30 15:55:20 +0200
commitf09b44b0d5acbcb67570727ebdd10102a2c707f8 (patch)
treea30c339849faed07b199029f1235a20e8cd350ac /src
parentb607eebcb709daee421aba4e19d7729e4766b974 (diff)
downloadVencord-f09b44b0d5acbcb67570727ebdd10102a2c707f8.tar.gz
Vencord-f09b44b0d5acbcb67570727ebdd10102a2c707f8.tar.bz2
Vencord-f09b44b0d5acbcb67570727ebdd10102a2c707f8.zip
VcNarrator: Ignore stage channels
Diffstat (limited to 'src')
-rw-r--r--src/plugins/vcNarrator.tsx2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/plugins/vcNarrator.tsx b/src/plugins/vcNarrator.tsx
index 62a6b43..fe3efdf 100644
--- a/src/plugins/vcNarrator.tsx
+++ b/src/plugins/vcNarrator.tsx
@@ -156,6 +156,8 @@ export default definePlugin({
const myChanId = SelectedChannelStore.getVoiceChannelId();
const myId = UserStore.getCurrentUser().id;
+ if (ChannelStore.getChannel(myChanId!)?.type === 13 /* Stage Channel */) return;
+
for (const state of voiceStates) {
const { userId, channelId, oldChannelId } = state;
const isMe = userId === myId;