Skip to content

Commit ac2e76b

Browse files
committed
tutorial for linking
1 parent 5226e93 commit ac2e76b

File tree

1 file changed

+35
-2
lines changed

1 file changed

+35
-2
lines changed

src/commands/link.ts

Lines changed: 35 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -276,8 +276,24 @@ export async function execute(
276276
(await userProfileResponse.json()) as FandomUserProfileResponse;
277277

278278
if (!userProfileData.userData || !userProfileData.userData.discordHandle) {
279+
const profileUrl = `https://alter-ego.fandom.com/wiki/User:${encodeURIComponent(canonicalFandomUsername)}`;
280+
const tutorialEmbed = new EmbedBuilder()
281+
.setColor("#FFA500")
282+
.setTitle("❓ HOW TO LINK YOUR FANDOM ACCOUNT")
283+
.setDescription(
284+
`**The alter "${canonicalFandomUsername}" hath not revealed one's Discord handle on the profile!**\n\n` +
285+
`To link your Discord, follow these steps:\n\n` +
286+
`1. Visit your Fandom profile: [Edit Profile](${profileUrl})\n` +
287+
`2. Click the **"Edit profile"** button on the top right of your user page.\n` +
288+
`3. Find the **"Discord"** field.\n` +
289+
`4. Enter your Discord username (e.g. \`${interaction.user.username}\`).\n` +
290+
`5. Save your profile.\n\n` +
291+
`Once done, run this command again.`
292+
)
293+
.setFooter({ text: "If you have set your Discord and still see this, double-check for typos or try again in a few minutes." });
294+
279295
await interaction.reply({
280-
content: `**THE ALTER "${canonicalFandomUsername}" HATH NOT REVEALED ONE'S DISCORD HANDLE ON THE PROFILE!**\nMake sure thy Discord handle is set on thy Fandom user profile.`,
296+
embeds: [tutorialEmbed],
281297
flags: MessageFlags.Ephemeral,
282298
});
283299
return;
@@ -290,8 +306,25 @@ export async function execute(
290306
fandomDiscordHandle.toLowerCase() !==
291307
discordUserIdentifierToCompare.toLowerCase()
292308
) {
309+
const profileUrl = `https://alter-ego.fandom.com/wiki/User:${encodeURIComponent(canonicalFandomUsername)}`;
310+
const tutorialEmbed = new EmbedBuilder()
311+
.setColor("#FFA500")
312+
.setTitle("❓ DISCORD HANDLE MISMATCH")
313+
.setDescription(
314+
`**A mismatch in the Dirac sea!**\n\n` +
315+
`The Discord handle on Fandom ("${fandomDiscordHandle}") doth not align with thy current Discord username ("${interaction.user.username}"). Didst thou input the correct username?\n\n` +
316+
`To fix this:\n` +
317+
`1. Visit your Fandom profile: [Edit Profile](${profileUrl})\n` +
318+
`2. Click the **"Edit profile"** button on the top right of your user page.\n` +
319+
`3. Find the **"Discord"** field.\n` +
320+
`4. Enter your correct Discord username (\`${interaction.user.username}\`).\n` +
321+
`5. Save your profile.\n\n` +
322+
`Once done, run this command again.`
323+
)
324+
.setFooter({ text: "If you have set your Discord and still see this, double-check for typos or try again in a few minutes." });
325+
293326
await interaction.reply({
294-
content: `**A MISMATCH IN THE DIRAC SEA!**\nThe Discord handle on Fandom ("${fandomDiscordHandle}") doth not align with thy current Discord username ("${interaction.user.username}"). Update thy Fandom profile, then try again.`,
327+
embeds: [tutorialEmbed],
295328
flags: MessageFlags.Ephemeral,
296329
});
297330
return;

0 commit comments

Comments
 (0)