Skip to content

Commit 515382d

Browse files
updated verifications string
1 parent 26229bf commit 515382d

File tree

3 files changed

+3
-4
lines changed

3 files changed

+3
-4
lines changed

src/constants/responses.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ export const NAME_CHANGED = "User nickname changed successfully";
2929
export const ROLE_REMOVED = "Role Removed successfully";
3030

3131
export const VERIFICATION_STRING =
32-
"Please verify your identity by clicking the link above and granting authorization to the Real Dev Squad. This will allow us to manage your Discord data.";
32+
"Please verify your identity by clicking the link below 👇 and granting authorization to the Real Dev Squad. This will allow us to manage your Discord data.";
3333

3434
export const ROLE_FETCH_FAILED =
3535
"Oops! We are experiencing an issue fetching roles.";

src/controllers/verifyCommand.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ export async function verifyCommand(
2424
);
2525
if (response?.status === 201 || response?.status === 200) {
2626
const verificationSiteURL = config(env).VERIFICATION_SITE_URL;
27-
const message = `${verificationSiteURL}/discord?token=${token}\n${VERIFICATION_STRING}`;
27+
const message = `${VERIFICATION_STRING}\n${verificationSiteURL}/discord?token=${token}`;
2828
return discordEphemeralResponse(message);
2929
} else {
3030
return discordEphemeralResponse(RETRY_COMMAND);

tests/unit/handlers/verifyCommand.test.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,8 +58,7 @@ describe("verifyCommand", () => {
5858

5959
const verificationSiteURL = config(env).VERIFICATION_SITE_URL;
6060
const message =
61-
`${verificationSiteURL}/discord?token=${UNIQUE_TOKEN}\n` +
62-
VERIFICATION_STRING;
61+
`${VERIFICATION_STRING}\n${verificationSiteURL}/discord?token=${UNIQUE_TOKEN}`
6362

6463
expect(resultData.data.content).toEqual(message);
6564
});

0 commit comments

Comments
 (0)