diff options
author | V <vendicated@riseup.net> | 2023-06-30 15:55:20 +0200 |
---|---|---|
committer | V <vendicated@riseup.net> | 2023-06-30 15:55:20 +0200 |
commit | f09b44b0d5acbcb67570727ebdd10102a2c707f8 (patch) | |
tree | a30c339849faed07b199029f1235a20e8cd350ac /src/plugins/vcNarrator.tsx | |
parent | b607eebcb709daee421aba4e19d7729e4766b974 (diff) | |
download | Vencord-f09b44b0d5acbcb67570727ebdd10102a2c707f8.tar.gz Vencord-f09b44b0d5acbcb67570727ebdd10102a2c707f8.tar.bz2 Vencord-f09b44b0d5acbcb67570727ebdd10102a2c707f8.zip |
VcNarrator: Ignore stage channels
Diffstat (limited to 'src/plugins/vcNarrator.tsx')
-rw-r--r-- | src/plugins/vcNarrator.tsx | 2 |
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; |