aboutsummaryrefslogtreecommitdiff
path: root/src/plugins/showMeYourName
diff options
context:
space:
mode:
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;