Skip to content

Commit efcd4d0

Browse files
Raising different PR for /verify string (#94)
* raising different PR for /verify string * resolved the comment * fix lint issue * fix lint issue
1 parent 7e9415e commit efcd4d0

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

src/constants/responses.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,9 @@ export const NAME_CHANGED = "User nickname changed successfully";
2828

2929
export const ROLE_REMOVED = "Role Removed successfully";
3030

31+
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.";
33+
3134
export const ROLE_FETCH_FAILED =
3235
"Oops! We are experiencing an issue fetching roles.";
3336

src/controllers/verifyCommand.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import config from "../../config/config";
2-
import { RETRY_COMMAND } from "../constants/responses";
2+
import { RETRY_COMMAND, VERIFICATION_STRING } from "../constants/responses";
33
import { env } from "../typeDefinitions/default.types";
44
import { discordEphemeralResponse } from "../utils/discordEphemeralResponse";
55
import { generateUniqueToken } from "../utils/generateUniqueToken";
@@ -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}`;
27+
const message = `${verificationSiteURL}/discord?token=${token}\n${VERIFICATION_STRING}`;
2828
return discordEphemeralResponse(message);
2929
} else {
3030
return discordEphemeralResponse(RETRY_COMMAND);

0 commit comments

Comments
 (0)