Another fix

This commit is contained in:
Christopher Cookman 2025-01-20 19:43:36 -07:00
parent 3a87995f50
commit 0e86e9a573

View file

@ -17,7 +17,7 @@ const execute = async (interaction) => {
} else if (row.discordId && row.discordId !== discordID.id) {
return interaction.reply({ content: "This Roblox ID is already linked to another account", ephemeral: true });
} else {
await pool.query('UPDATE users SET discordId = ? discordDisplayName = ? WHERE robloxId = ?', [discordID.id, discordID.displayName, robloxId]);
await pool.query('UPDATE users SET discordId = ?, discordDisplayName = ? WHERE robloxId = ?', [discordID.id, discordID.displayName, robloxId]);
}
} catch (error) {
log.error(error);