commit 09159c46271caaab9ff03689be42341e9ca6ed1e
parent 8e1651e4bf00a6d34784bfaccb37e37fb1b53b83
Author: night0721 <[email protected]>
Date: Sat, 22 Jan 2022 20:42:35 +0800
Merge branch 'main' of https://github.com/night0721/cath.exe
Diffstat:
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/command/CODM/build.js b/command/CODM/build.js
@@ -767,8 +767,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`