Skip to content

Commit 6414036

Browse files
authored
Update linkv2.ts
fix no globalName alternative
1 parent c02d5ca commit 6414036

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/commands/team/linkv2.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ export default command(meta, async ({ interaction }) => {
5858
Authorization: `Bearer ${process.env.BOT_TOKEN}`,
5959
},
6060
body: JSON.stringify({
61-
user: interaction.user.globalName,
61+
user: interaction.user.globalName ?? interaction.user.displayName,
6262
id: interaction.user.id,
6363
nexusmods: interaction.options.getString("nexusmods") ?? null,
6464
github: interaction.options.getString("github") ?? null,

0 commit comments

Comments
 (0)