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

View file

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