const client = global.discord_client const pool = global.db_pool; const execute = async (interaction) => { const discordID = interaction.user.id; const [row] = await pool.query('SELECT * FROM users WHERE discordId = ?', [discordID]); if (!row) return interaction.reply({ content: "Your account isn't linked!", ephemeral: true }); await pool.query('UPDATE users SET discordId = NULL, pairingCode = NULL WHERE discordId = ?', [discordID]); return interaction.reply({ content: "Successfully unlinked your account. Please use the hub game to get a new pairing code!", ephemeral: true }); } const noop = () => { }; module.exports = { execute: noop }