commit 3fb1b8bea3beca09a85713611b1a887e44882295
parent 6da0a868a24c9fc5dfc8df3f5251ea5181762325
Author: NK <[email protected]>
Date: Thu, 6 Apr 2023 14:10:43 +0100
fix
Diffstat:
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/command/CODM/build.js b/command/CODM/build.js
@@ -684,7 +684,11 @@ module.exports = {
`<:nyx_not_available:897378400031879188> We don't have a **${tag}** gunsmith build for the gun with **CWTS 🆔 ${cwts}** by **${cc}**, Please try another tag or a differnt content creator`
)
.setColor(client.color);
- interaction.followUp({ embeds: [embed] });
+ try {
+ interaction.followUp({ embeds: [embed] });
+ } catch (e) {
+ interaction.editReply({ embeds: [embed] });
+ }
} else {
const arr = [];
data.attachments.map((e, i) => {