#Can someone help me to handle the 3 chases right

2 messages · Page 1 of 1 (latest)

austere locust
#

if I understand you properly, just move it out of the error handler. do the check right after polling the API

#
const responsePlayerName = await axios.get(getPlayerName, config);
if (responsePlayerName.data.status === 404) {
  await interaction.reply({
    embeds: [getInvalidTagEmbed()],
    ephemeral: true,
  });
  return;
}