From 81a6f88c85ec331c69cf0ee48af5f6dbaf33c2ed Mon Sep 17 00:00:00 2001 From: Project_IO Date: Sat, 21 Sep 2024 23:15:08 +0900 Subject: [PATCH] fix: avatar username fixed --- .../src/main/kotlin/net/projecttl/p/x32/func/command/Avatar.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/px32-bot-func/src/main/kotlin/net/projecttl/p/x32/func/command/Avatar.kt b/px32-bot-func/src/main/kotlin/net/projecttl/p/x32/func/command/Avatar.kt index ea70935..c7ecd60 100644 --- a/px32-bot-func/src/main/kotlin/net/projecttl/p/x32/func/command/Avatar.kt +++ b/px32-bot-func/src/main/kotlin/net/projecttl/p/x32/func/command/Avatar.kt @@ -12,7 +12,7 @@ object Avatar : UserContext { override suspend fun execute(ev: UserContextInteractionEvent) { val embed = EmbedBuilder() - embed.setTitle(":frame_photo: ${ev.name} Avatar") + embed.setTitle(":frame_photo: ${ev.user.name}'s Avatar") embed.setImage("${ev.target.effectiveAvatarUrl}?size=512") embed.colour()