mirror of
https://github.com/NohamR/lanyard-profile-readme.git
synced 2026-11-25 23:07:47 +00:00
Refactoring: More specific error
This commit is contained in:
1 parent
c92b60dd87
commit
b1c0da1ac0
1 file changed
+1
-1
@@ -24,7 +24,7 @@ export default async function handler(req: NextApiRequest, res: NextApiResponse<
|
|||||||
|
|
||||||
if (!isSnowflake(userId))
|
if (!isSnowflake(userId))
|
||||||
return res.send({
|
return res.send({
|
||||||
error: `Specify a valid Discord user ID! If everything looks correct and this still occurs, please contact @cnraddd on Twitter.`,
|
error: `That is not a valid snowflake ID!`,
|
||||||
});
|
});
|
||||||
|
|
||||||
try {
|
try {
|
||||||
|
|||||||
Reference in new issue
Block a user