From d9ab7afd5a01911f8acfab1a25d64cddbd79c26d Mon Sep 17 00:00:00 2001 From: d4n Date: Mon, 9 Sep 2024 20:59:13 -0500 Subject: [PATCH] Remove cast on `/user` --- src/Modules/UtilityModule.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Modules/UtilityModule.cs b/src/Modules/UtilityModule.cs index f3c560e..73ffd30 100644 --- a/src/Modules/UtilityModule.cs +++ b/src/Modules/UtilityModule.cs @@ -528,7 +528,7 @@ public async Task UserInfoAsync([Summary(description: "The user." { activities = string.Join('\n', user.Activities.Select(x => x.Type == ActivityType.CustomStatus - ? ((CustomStatusGame)x).ToString() + ? x.ToString() : $"{x.Type} {x.Name}")); }