From 373e82d55bb407ab084ec3e229b7191cfa5b72f2 Mon Sep 17 00:00:00 2001 From: zkldi <20380519+zkldi@users.noreply.github.com> Date: Thu, 7 Apr 2022 16:51:07 +0100 Subject: [PATCH] Improve profile error message --- bot/src/slashCommands/commands/profile.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/bot/src/slashCommands/commands/profile.ts b/bot/src/slashCommands/commands/profile.ts index d2b087bbc..6e508c6a8 100644 --- a/bot/src/slashCommands/commands/profile.ts +++ b/bot/src/slashCommands/commands/profile.ts @@ -1,4 +1,5 @@ import { SlashCommandBuilder } from "@discordjs/builders"; +import { FormatGame } from "tachi-common"; import { GetUGPTStats } from "../../utils/apiRequests"; import { GetGPTAndUser } from "../../utils/argParsers"; import { CreateGameProfileEmbed } from "../../utils/embeds"; @@ -25,7 +26,7 @@ const command: SlashCommand = { try { ugptStats = await GetUGPTStats(userDoc.id, game, playtype); } catch (err) { - return `This user has not played this game.`; + return `This user has not played ${FormatGame(game, playtype)}.`; } return CreateGameProfileEmbed(userDoc, ugptStats);