mirror of
https://github.com/NohamR/lanyard-profile-readme.git
synced 2026-05-26 12:45:08 +00:00
Refactoring: More specific error
This commit is contained in:
@@ -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