From 7deb41457a5f416d687466a91e3ae07f21d13c06 Mon Sep 17 00:00:00 2001 From: Project_IO Date: Sat, 21 Sep 2024 23:15:39 +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 c7ecd60..2bbec3a 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.user.name}'s Avatar") + embed.setTitle(":frame_photo: ${ev.target.name}'s Avatar") embed.setImage("${ev.target.effectiveAvatarUrl}?size=512") embed.colour()