diff --git a/commands/interaction/slash/utils/dictionary.js b/commands/interaction/slash/utils/dictionary.js index dbf5617..d5bc33a 100644 --- a/commands/interaction/slash/utils/dictionary.js +++ b/commands/interaction/slash/utils/dictionary.js @@ -89,8 +89,8 @@ module.exports = { pages: formatPaginationEmbeds(pages) }); }catch(e){ - console.log(e) if(e.response?.body?.status && e.response.body.status == 2) return editOrReply(context, createEmbed("warning", context, e.response.body.message)) + console.log(e) return editOrReply(context, createEmbed("error", context, `Unable to perform dictionary lookup.`)) } }, diff --git a/commands/interaction/slash/utils/emoji.js b/commands/interaction/slash/utils/emoji.js index 8e52553..30473bb 100644 --- a/commands/interaction/slash/utils/emoji.js +++ b/commands/interaction/slash/utils/emoji.js @@ -96,7 +96,6 @@ module.exports = { try{ await emojiKitchen([em]) }catch(e){ - console.log(e) return editOrReply(context, createEmbed("warning", context, `Unsupported Emoji (${em})`)) } } @@ -105,7 +104,6 @@ module.exports = { } return editOrReply(context, createEmbed("image", context, { url: em.body.results[0].url })) }catch(e){ - console.log(e) return editOrReply(context, createEmbed("error", context, "Unable to mix emoji.")) } } @@ -119,7 +117,6 @@ module.exports = { res = await emojipedia(context, emoji[0]) res = res.response.body }catch(e){ - console.log(e) return await editOrReply(context, createEmbed("error", context, `No emoji data available for ${emoji[0]}.`)) } diff --git a/commands/message/utils/dictionary.js b/commands/message/utils/dictionary.js index 77bff44..82c054c 100644 --- a/commands/message/utils/dictionary.js +++ b/commands/message/utils/dictionary.js @@ -90,8 +90,8 @@ module.exports = { pages: formatPaginationEmbeds(pages) }); }catch(e){ - console.log(e) if(e.response?.body?.status && e.response.body.status == 2) return editOrReply(context, createEmbed("warning", context, e.response.body.message)) + console.log(e) return editOrReply(context, createEmbed("error", context, `Unable to perform dictionary lookup.`)) } }, diff --git a/commands/message/utils/latex.js b/commands/message/utils/latex.js index cd1656d..c140425 100644 --- a/commands/message/utils/latex.js +++ b/commands/message/utils/latex.js @@ -52,7 +52,6 @@ module.exports = { } }))) }catch(e){ - console.log(e) pages.push(page(createEmbed("default", context, { description: codeblock("tex", [t]), author: { diff --git a/commands/message/utils/ocrtr.js b/commands/message/utils/ocrtr.js index cbafb85..e9d4c97 100644 --- a/commands/message/utils/ocrtr.js +++ b/commands/message/utils/ocrtr.js @@ -64,8 +64,8 @@ module.exports = { } })) }catch(e){ - console.log(e) if(e.response?.body?.status && e.response.body.status == 2) return editOrReply(context, createEmbed("error", context, `Unable to translate text.`)) + console.log(e) return editOrReply(context, createEmbed("error", context, `Something went wrong.`)) } } diff --git a/commands/message/utils/qr.js b/commands/message/utils/qr.js index 3a92fc2..4ffe0cd 100644 --- a/commands/message/utils/qr.js +++ b/commands/message/utils/qr.js @@ -83,7 +83,6 @@ module.exports = { })) }catch(e){ - console.log(e) return editOrReply(context, createEmbed("error", context, `Unable to scan qr codes.`)) } } diff --git a/commands/message/utils/translate.js b/commands/message/utils/translate.js index 57525cc..a4e6d5d 100644 --- a/commands/message/utils/translate.js +++ b/commands/message/utils/translate.js @@ -64,8 +64,8 @@ module.exports = { } })) }catch(e){ - console.log(e) if(e.response?.body?.status && e.response.body.status == 2) return editOrReply(context, createEmbed("error", context, `Unable to translate text.`)) + console.log(e) return editOrReply(context, createEmbed("error", context, `Something went wrong.`)) } } diff --git a/commands/message/utils/weather.js b/commands/message/utils/weather.js index c6fd062..14512e3 100644 --- a/commands/message/utils/weather.js +++ b/commands/message/utils/weather.js @@ -62,7 +62,6 @@ module.exports = { return editOrReply(context, e) }catch(e){ - console.log(e) return editOrReply(context, createEmbed("warning", context, `No weather data available for given location.`)) } },