Skip to content

Commit b625411

Browse files
committed
Update discord bot to give more context on "email"
1 parent 518639d commit b625411

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

web/scripts/discord/register-commands.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ const commands = [
1010
.addStringOption((option) =>
1111
option
1212
.setName('email')
13-
.setDescription('The email address you used to register with Codebuff')
13+
.setDescription('The primary email for your GitHub account used for Codebuff')
1414
.setRequired(true),
1515
),
1616
]

web/src/discord/client.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ export function startDiscordBot(): Promise<Client> {
7979

8080
if (!email) {
8181
await command.reply({
82-
content: 'Please provide your email address with the command.',
82+
content: `Please provide the primary email for your GitHub account used for Codebuff. You can find it at ${env.NEXT_PUBLIC_CODEBUFF_APP_URL}/profile?tab=account`,
8383
ephemeral: true,
8484
})
8585
return
@@ -110,7 +110,7 @@ export function startDiscordBot(): Promise<Client> {
110110
userRecord.discordId !== null
111111
) {
112112
await command.reply({
113-
content: `I couldn't link that email to your Discord account. Make sure you're using the correct email and that it isn't already linked to another Discord account. Contact ${env.NEXT_PUBLIC_SUPPORT_EMAIL} if you need help.`,
113+
content: `I couldn't link that email to your Discord account. Make sure you're using the correct email (the primary email on your GitHub account) and that it isn't already linked to another Discord account. You can find your Codebuff email at ${env.NEXT_PUBLIC_CODEBUFF_APP_URL}/profile?tab=account.`,
114114
ephemeral: true,
115115
})
116116
return

0 commit comments

Comments
 (0)