diff --git a/command/CODM/build.js b/command/CODM/build.js index f7923f1..4026d4f 100644 --- a/command/CODM/build.js +++ b/command/CODM/build.js @@ -749,8 +749,8 @@ module.exports = { } ) .then(res => res.data) - .catch(); - if (!data) { + .catch(e => null); + if (!data?.ID) { const embed = new MessageEmbed() .setDescription( `<:nyx_not_available:897378400031879188> We don't have a ${all[tag]} **${allguns[gun]}** gunsmith build by **${all[cc]}**, Please try another tag or a differnt content creator`