1
0
mirror of https://github.com/toast-ts/Daggerbot-TS.git synced 2024-11-17 00:10:58 -05:00

Fix interaction error

This commit is contained in:
toast-ts 2024-09-30 14:31:11 +10:00
parent 5349d41345
commit 404fe2bbe8

View File

@ -56,7 +56,11 @@ async function fetchData(client:TClient, interaction:Discord.ChatInputCommandInt
return data.dss as FSData; return data.dss as FSData;
} catch { } catch {
Logger.console('error', 'MPDB', 'Function failed - fetchData'); Logger.console('error', 'MPDB', 'Function failed - fetchData');
await interaction.editReply(`Ran into a ${RanIntoHumor()} while trying to retrieve server data, please try again later.`); Logger.console('error', 'MPDB', `Interaction data received: ${interaction}`);
let msg = `Ran into a ${RanIntoHumor()} while trying to retrieve server data, please try again later.`;
if (interaction.replied || interaction.deferred) await interaction.editReply(msg);
else await interaction.reply(msg);
} }
} }