Fixes and make guild tooltip show users inside hidden voice channels (#613)
* Fix #509 * Fix #597 * Fix #594
This commit is contained in:
parent
4aff11421f
commit
e36f4e5b0a
5 changed files with 23 additions and 10 deletions
|
|
@ -335,6 +335,14 @@ export default definePlugin({
|
|||
match: /(?<=getChannel\((\i)\)\)(?=.{0,100}?selectVoiceChannel))/,
|
||||
replace: (_, channelId) => `&&!$self.isHiddenChannel({channelId:${channelId}})`
|
||||
}
|
||||
},
|
||||
{
|
||||
find: '.displayName="GuildChannelStore"',
|
||||
replacement: {
|
||||
// Make GuildChannelStore contain hidden channels for users in voice channels to appear in the guild tooltip
|
||||
match: /isChannelGated\(.+?\)(?=\|\|)/,
|
||||
replace: m => `${m}||true`
|
||||
}
|
||||
}
|
||||
],
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue