aboutsummaryrefslogtreecommitdiff
path: root/src/plugins/showMeYourName
diff options
context:
space:
mode:
authorLuna <imlvnaa@gmail.com>2023-06-09 19:48:18 +0000
committerVen <ven@noreply.codeberg.org>2023-06-09 19:48:18 +0000
commitdbad10984a99b6eb9234ec71f2891a136b6a572b (patch)
tree8141aad45299c68583b6c679f6a21258802fdcfb /src/plugins/showMeYourName
parent55543d8640562fdcd673c7e73e0498d02cd4e328 (diff)
downloadVencord-dbad10984a99b6eb9234ec71f2891a136b6a572b.tar.gz
Vencord-dbad10984a99b6eb9234ec71f2891a136b6a572b.tar.bz2
Vencord-dbad10984a99b6eb9234ec71f2891a136b6a572b.zip
[skip ci] Don't run ci on forks; Fix interaction nicks in SMYN (#4)
The following actions are disabled unless run on the main repo: codeberg, publish, build/upload, reportBrokenPlugins Reviewed-on: https://codeberg.org/Ven/cord/pulls/4 Co-authored-by: Luna <imlvnaa@gmail.com> Co-committed-by: Luna <imlvnaa@gmail.com>
Diffstat (limited to 'src/plugins/showMeYourName')
-rw-r--r--src/plugins/showMeYourName/index.tsx1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/plugins/showMeYourName/index.tsx b/src/plugins/showMeYourName/index.tsx
index ee43331..473e2f7 100644
--- a/src/plugins/showMeYourName/index.tsx
+++ b/src/plugins/showMeYourName/index.tsx
@@ -63,6 +63,7 @@ export default definePlugin({
settings,
renderUsername: ({ author, message, isRepliedMessage, withMentionPrefix }: UsernameProps) => {
+ if (message.interaction) return author?.nick;
try {
const { username } = message.author;
const { nick } = author;