diff --git a/bot/src/slashCommands/commands/profile.ts b/bot/src/slashCommands/commands/profile.ts index cd05ed106..39ada5d42 100644 --- a/bot/src/slashCommands/commands/profile.ts +++ b/bot/src/slashCommands/commands/profile.ts @@ -25,7 +25,12 @@ const command: SlashCommand = { return `Invalid userID. Can't query this!`; } - const userDoc = await GetUserInfo(userID); + let userDoc; + try { + userDoc = await GetUserInfo(userID); + } catch (err) { + return `This user does not exist.`; + } const { game, playtype } = ParseGPT(interaction.options.getString("game", true));