aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAutumnVN <autumnvnchino@gmail.com>2023-09-19 09:10:48 +0700
committerV <vendicated@riseup.net>2023-09-19 04:11:30 +0200
commitfc0417eb80513c9ca97fee27df6968db116fa1fc (patch)
tree01e9a07b44c5a7762ad76d63f3a4dba91e5eadfa
parent1f87d14ab2098e80da00b646b19f3892129252d2 (diff)
downloadVencord-fc0417eb80513c9ca97fee27df6968db116fa1fc.tar.gz
Vencord-fc0417eb80513c9ca97fee27df6968db116fa1fc.tar.bz2
Vencord-fc0417eb80513c9ca97fee27df6968db116fa1fc.zip
moreUserTags: fix user tag in member list (#1730)
-rw-r--r--src/plugins/moreUserTags.tsx7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/plugins/moreUserTags.tsx b/src/plugins/moreUserTags.tsx
index dbe8cc2..595a8ed 100644
--- a/src/plugins/moreUserTags.tsx
+++ b/src/plugins/moreUserTags.tsx
@@ -185,7 +185,7 @@ const settings = definePluginSettings({
export default definePlugin({
name: "MoreUserTags",
description: "Adds tags for webhooks and moderative roles (owner, admin, etc.)",
- authors: [Devs.Cyn, Devs.TheSun, Devs.RyanCaoDev, Devs.LordElias],
+ authors: [Devs.Cyn, Devs.TheSun, Devs.RyanCaoDev, Devs.LordElias, Devs.AutumnVN],
settings,
patches: [
// add tags to the tag list
@@ -232,9 +232,8 @@ export default definePlugin({
{
find: ".renderBot=function(){",
replacement: {
- match: /this.props.user;return null!=(\i)&&.{0,10}\?(.{0,50})\.botTag/,
- replace: "this.props.user;var type=$self.getTag({...this.props,origType:$1.bot?0:null,location:'not-chat'});\
-return type!==null?$2.botTag,type"
+ match: /\.BOT;return null!=(\i)&&.{0,10}\?(.{0,50})\.botTag,type:\i/,
+ replace: ".BOT;var type=$self.getTag({...this.props,origType:$1.bot?0:null,location:'not-chat'});return type!==null?$2.botTag,type"
}
},
// pass channel id down props to be used in profiles