feat: no embed errors

This commit is contained in:
TrèsAbhi committed 2024-01-21 18:29:32 -06:00
1 parent 6094875ffb
commit 8946f115c0
8 files changed
+15 -33

No files matched your search

+2 -4
View File
@@ -35,8 +35,7 @@ export default async function resolvePlayerFromCommand(
} satisfies ResolvedPlayer;
} else {
throw new UserError(
'Could not find user',
`I couldn't find user "${markdownEscape(
`# Could not find user\nI couldn't find user "${markdownEscape(
commandUsername,
)}". Try picking an user from the search result, typing in a valid username, or using the \`/link\` command.`,
);
@@ -49,8 +48,7 @@ export default async function resolvePlayerFromCommand(
return { region: account.region, id: account.blitz };
} else {
throw new UserError(
"You're account isn't linked with Blitzkrieg yet",
'Use the `/link` command to get started.',
"# I don't know who you are\nUse the `/link` command to get started.",
);
}
}