SMYN & Questify: Fix patches. (#581)
* Fix patches. * Update. * Update. * Lint.
This commit is contained in:
parent
7ac0187a8a
commit
a61e7ece75
2 changed files with 4 additions and 4 deletions
|
|
@ -1012,11 +1012,11 @@ export default definePlugin({
|
|||
{
|
||||
// Hides the Quest icon from members list items when
|
||||
// a user is playing a game tied to an active Quest.
|
||||
find: "HANG_STATUS});",
|
||||
find: "),\"activity-\".concat",
|
||||
group: true,
|
||||
replacement: [
|
||||
{
|
||||
match: /(?=if\(\(0,.{0,30}?isBlockedOrIgnored)/,
|
||||
match: /(?<=voiceActivityChannel:\i\?\i:null}\);)/,
|
||||
replace: "const shouldHideMembersListActivelyPlayingIcon=$self.shouldHideMembersListActivelyPlayingIcon();"
|
||||
},
|
||||
{
|
||||
|
|
|
|||
|
|
@ -969,7 +969,7 @@ export default definePlugin({
|
|||
// Tags *should* contain the guild ID nested in its structure, but on the first time
|
||||
// loading a guild member's preview profile, it will be undefined. This patch bypasses
|
||||
// that by passing the guild ID as its own prop.
|
||||
find: ".hasAvatarForGuild(null==",
|
||||
find: "\"UserProfilePopoutBody\"}",
|
||||
replacement: {
|
||||
match: /(pronouns,tags:)/,
|
||||
replace: "pronouns,guildId:arguments[0]?.guild?.id??null,tags:"
|
||||
|
|
@ -977,7 +977,7 @@ export default definePlugin({
|
|||
},
|
||||
{
|
||||
// Same as above, but for bot members.
|
||||
find: "BotUserProfilePopoutBody\"}",
|
||||
find: "popularApplicationCommandIds)!=null&&null",
|
||||
replacement: {
|
||||
match: /(pronouns,tags:)/,
|
||||
replace: "pronouns,guildId:arguments[0]?.guild?.id??null,tags:"
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue