mirror of
https://github.com/zkldi/Tachi.git
synced 2026-10-03 04:18:16 +03:00
Improve profile error message
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user