VcNarrator: Ignore stage channels
This commit is contained in:
parent
b607eebcb7
commit
f09b44b0d5
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue