Fix PermissionViewer

This commit is contained in:
Vendicated 2023-10-25 19:54:13 +02:00
parent 535d510d3b
commit 88c6e2a0e9
No known key found for this signature in database
GPG Key ID: D66986BAF75ECF18

@ -161,7 +161,7 @@ export default definePlugin({
patches: [ patches: [
{ {
find: ".Messages.BOT_PROFILE_SLASH_COMMANDS", find: ".popularApplicationCommandIds,",
replacement: { replacement: {
match: /showBorder:.{0,60}}\),(?<=guild:(\i),guildMember:(\i),.+?)/, match: /showBorder:.{0,60}}\),(?<=guild:(\i),guildMember:(\i),.+?)/,
replace: (m, guild, guildMember) => `${m}$self.UserPermissions(${guild},${guildMember}),` replace: (m, guild, guildMember) => `${m}$self.UserPermissions(${guild},${guildMember}),`