Improve profile error message

This commit is contained in:
zkldi
2022-04-07 16:51:07 +01:00
parent d92c8d2220
commit 373e82d55b
+2 -1
View File
@@ -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);