From 897978ef73c0b41577d0cd8c13c779fa1eaaf61c Mon Sep 17 00:00:00 2001 From: Daniel Odendahl Jr Date: Tue, 16 May 2017 12:17:52 +0000 Subject: [PATCH] Fix Error Messages --- commands/avataredit/3000years.js | 2 +- commands/avataredit/beautiful.js | 2 +- commands/avataredit/bobross.js | 2 +- commands/avataredit/card.js | 2 +- commands/avataredit/greyscale.js | 2 +- commands/avataredit/invert.js | 2 +- commands/avataredit/rip.js | 2 +- commands/avataredit/simba.js | 2 +- commands/avataredit/steamcard.js | 2 +- commands/avataredit/triggered.js | 2 +- commands/avataredit/wanted.js | 2 +- commands/moderation/ban.js | 2 +- commands/moderation/kick.js | 2 +- commands/moderation/lockdown.js | 4 ++-- commands/moderation/softban.js | 2 +- commands/moderation/unban.js | 2 +- commands/numedit/currency.js | 2 +- commands/random/meme.js | 2 +- commands/random/soundboard.js | 2 +- commands/random/spam.js | 2 +- commands/random/strawpoll.js | 2 +- commands/random/today.js | 2 +- commands/random/wouldyourather.js | 2 +- commands/randomimg/cat.js | 4 ++-- commands/randomimg/dog.js | 4 ++-- commands/randomimg/xiaopai.js | 2 +- commands/randomimg/xkcd.js | 6 +++--- commands/search/anime.js | 2 +- commands/search/botinfo.js | 2 +- commands/search/define.js | 2 +- commands/search/forecast.js | 2 +- commands/search/google.js | 2 +- commands/search/imdb.js | 2 +- commands/search/konachan.js | 4 ++-- commands/search/manga.js | 2 +- commands/search/map.js | 4 ++-- commands/search/neopet.js | 2 +- commands/search/osu.js | 2 +- commands/search/soundcloud.js | 2 +- commands/search/urban.js | 2 +- commands/search/wattpad.js | 2 +- commands/search/weather.js | 2 +- commands/search/wikipedia.js | 2 +- commands/search/youtube.js | 2 +- commands/search/yugioh.js | 2 +- commands/textedit/webhook.js | 2 +- 46 files changed, 53 insertions(+), 53 deletions(-) diff --git a/commands/avataredit/3000years.js b/commands/avataredit/3000years.js index 5eecaafd..d8351e2e 100644 --- a/commands/avataredit/3000years.js +++ b/commands/avataredit/3000years.js @@ -45,7 +45,7 @@ module.exports = class YearsCommand extends Command { avatar.src = body; generate(); return msg.say({ files: [{ attachment: canvas.toBuffer(), name: 'az.png' }] }) - .catch(err => msg.say(err)); + .catch(() => msg.say('An Error Occurred while sending the image.')); } catch (err) { return msg.say('An Error Occurred while creating the image.'); } diff --git a/commands/avataredit/beautiful.js b/commands/avataredit/beautiful.js index 2c72f2af..19bd2045 100644 --- a/commands/avataredit/beautiful.js +++ b/commands/avataredit/beautiful.js @@ -46,7 +46,7 @@ module.exports = class BeautifulCommand extends Command { avatar.src = body; generate(); return msg.say({ files: [{ attachment: canvas.toBuffer(), name: 'grunkle.png' }] }) - .catch(err => msg.say(err)); + .catch(() => msg.say('An Error Occurred while sending the image.')); } catch (err) { return msg.say('An Error Occurred while creating the image.'); } diff --git a/commands/avataredit/bobross.js b/commands/avataredit/bobross.js index 8ac9169a..c4f892eb 100644 --- a/commands/avataredit/bobross.js +++ b/commands/avataredit/bobross.js @@ -49,7 +49,7 @@ module.exports = class BobRossCommand extends Command { avatar.src = body; generate(); return msg.say({ files: [{ attachment: canvas.toBuffer(), name: 'ross.png' }] }) - .catch(err => msg.say(err)); + .catch(() => msg.say('An Error Occurred while sending the image.')); } catch (err) { return msg.say('An Error Occurred while creating the image.'); } diff --git a/commands/avataredit/card.js b/commands/avataredit/card.js index 6f755f06..c8633761 100644 --- a/commands/avataredit/card.js +++ b/commands/avataredit/card.js @@ -68,7 +68,7 @@ module.exports = class CardCommand extends Command { avatar.src = body; generate(); return msg.say({ files: [{ attachment: canvas.toBuffer(), name: 'card.png' }] }) - .catch(err => msg.say(err)); + .catch(() => msg.say('An Error Occurred while sending the image.')); } catch (err) { return msg.say('An Error Occurred while creating the image.'); } diff --git a/commands/avataredit/greyscale.js b/commands/avataredit/greyscale.js index a19221a5..5c5eb05f 100644 --- a/commands/avataredit/greyscale.js +++ b/commands/avataredit/greyscale.js @@ -48,7 +48,7 @@ module.exports = class GreyscaleCommand extends Command { avatar.src = avatarImg.body; generate(); return msg.say({ files: [{ attachment: canvas.toBuffer(), name: 'greyscale.png' }] }) - .catch(err => msg.say(err)); + .catch(() => msg.say('An Error Occurred while sending the image.')); } catch (err) { return msg.say('An Error Occurred while creating the image.'); } diff --git a/commands/avataredit/invert.js b/commands/avataredit/invert.js index b000fb0c..fd114cec 100644 --- a/commands/avataredit/invert.js +++ b/commands/avataredit/invert.js @@ -46,7 +46,7 @@ module.exports = class InvertCommand extends Command { avatar.src = avatarImg.body; generate(); return msg.say({ files: [{ attachment: canvas.toBuffer(), name: 'invert.png' }] }) - .catch(err => msg.say(err)); + .catch(() => msg.say('An Error Occurred while sending the image.')); } catch (err) { return msg.say('An Error Occurred while creating the image.'); } diff --git a/commands/avataredit/rip.js b/commands/avataredit/rip.js index 0393b315..d73c06c2 100644 --- a/commands/avataredit/rip.js +++ b/commands/avataredit/rip.js @@ -54,7 +54,7 @@ module.exports = class RIPCommand extends Command { avatar.src = avatarImg.body; generate(); return msg.say({ files: [{ attachment: canvas.toBuffer(), name: 'rip.png' }] }) - .catch(err => msg.say(err)); + .catch(() => msg.say('An Error Occurred while sending the image.')); } catch (err) { return msg.say('An Error Occurred while creating the image.'); } diff --git a/commands/avataredit/simba.js b/commands/avataredit/simba.js index 41619dc2..bc871f04 100644 --- a/commands/avataredit/simba.js +++ b/commands/avataredit/simba.js @@ -46,7 +46,7 @@ module.exports = class SimbaCommand extends Command { avatar.src = body; generate(); return msg.say({ files: [{ attachment: canvas.toBuffer(), name: 'simba.png' }] }) - .catch(err => msg.say(err)); + .catch(() => msg.say('An Error Occurred while sending the image.')); } catch (err) { return msg.say('An Error Occurred while creating the image.'); } diff --git a/commands/avataredit/steamcard.js b/commands/avataredit/steamcard.js index a209f83c..b6e63171 100644 --- a/commands/avataredit/steamcard.js +++ b/commands/avataredit/steamcard.js @@ -50,7 +50,7 @@ module.exports = class SteamCardCommand extends Command { avatar.src = body; generate(); return msg.say({ files: [{ attachment: canvas.toBuffer(), name: 'card.png' }] }) - .catch(err => msg.say(err)); + .catch(() => msg.say('An Error Occurred while sending the image.')); } catch (err) { return msg.say('An Error Occurred while creating the image.'); } diff --git a/commands/avataredit/triggered.js b/commands/avataredit/triggered.js index 6b8eca59..49455480 100644 --- a/commands/avataredit/triggered.js +++ b/commands/avataredit/triggered.js @@ -52,7 +52,7 @@ module.exports = class TriggeredCommand extends Command { avatar.src = body; generate(); return msg.say({ files: [{ attachment: canvas.toBuffer(), name: 'triggered.png' }] }) - .catch(err => msg.say(err)); + .catch(() => msg.say('An Error Occurred while sending the image.')); } catch (err) { return msg.say('An Error Occurred while creating the image.'); } diff --git a/commands/avataredit/wanted.js b/commands/avataredit/wanted.js index 2cd5bf57..80dfc0c8 100644 --- a/commands/avataredit/wanted.js +++ b/commands/avataredit/wanted.js @@ -44,7 +44,7 @@ module.exports = class WantedCommand extends Command { avatar.src = body; generate(); return msg.say({ files: [{ attachment: canvas.toBuffer(), name: 'wanted.png' }] }) - .catch(err => msg.say(err)); + .catch(() => msg.say('An Error Occurred while sending the image.')); } catch (err) { return msg.say('An Error Occurred while creating the image.'); } diff --git a/commands/moderation/ban.js b/commands/moderation/ban.js index 86b66212..8a168eef 100644 --- a/commands/moderation/ban.js +++ b/commands/moderation/ban.js @@ -67,7 +67,7 @@ module.exports = class BanCommand extends Command { `); return modlogs.send({ embed }); } catch (err) { - return msg.say(err); + return msg.say('No Results.'); } } }; diff --git a/commands/moderation/kick.js b/commands/moderation/kick.js index cc943542..1e95f6d2 100644 --- a/commands/moderation/kick.js +++ b/commands/moderation/kick.js @@ -66,7 +66,7 @@ module.exports = class KickCommand extends Command { `); return modlogs.send({ embed }); } catch (err) { - return msg.say(err); + return msg.say('No Results.'); } } }; diff --git a/commands/moderation/lockdown.js b/commands/moderation/lockdown.js index f07db6f7..f39cad93 100644 --- a/commands/moderation/lockdown.js +++ b/commands/moderation/lockdown.js @@ -40,14 +40,14 @@ module.exports = class LockdownCommand extends Command { Please use \`lockdown stop\` to end the lockdown. `); } catch (err) { - return msg.say(err); + return msg.say('No Results.'); } } else if (type === 'stop') { try { await msg.channel.overwritePermissions(msg.guild.defaultRole, { SEND_MESSAGES: true }); return msg.say('Lockdown Ended, users without Administrator can now post messages.'); } catch (err) { - return msg.say(err); + return msg.say('No Results.'); } } } diff --git a/commands/moderation/softban.js b/commands/moderation/softban.js index 3fd543c1..594fe96c 100644 --- a/commands/moderation/softban.js +++ b/commands/moderation/softban.js @@ -70,7 +70,7 @@ module.exports = class SoftbanCommand extends Command { `); return modlogs.send({ embed }); } catch (err) { - return msg.say(err); + return msg.say('No Results.'); } } }; diff --git a/commands/moderation/unban.js b/commands/moderation/unban.js index 373528f9..43bdbbfb 100644 --- a/commands/moderation/unban.js +++ b/commands/moderation/unban.js @@ -65,7 +65,7 @@ module.exports = class UnbanCommand extends Command { `); return modlogs.send({ embed }); } catch (err) { - return msg.say(err); + return msg.say('No Results.'); } } }; diff --git a/commands/numedit/currency.js b/commands/numedit/currency.js index 811694fa..1399b57d 100644 --- a/commands/numedit/currency.js +++ b/commands/numedit/currency.js @@ -53,7 +53,7 @@ module.exports = class CurrencyCommand extends Command { const rate = body.rates[to]; return msg.say(`${amount} ${base} is ${amount * rate} ${to}.`); } catch (err) { - return msg.say(err); + return msg.say('An Error Occurred.'); } } }; diff --git a/commands/random/meme.js b/commands/random/meme.js index 8e024a63..f0587445 100644 --- a/commands/random/meme.js +++ b/commands/random/meme.js @@ -42,6 +42,6 @@ module.exports = class MemeCommand extends Command { return msg.say('This Command requires the `Attach Files` Permission.'); const { type, top, bottom } = args; return msg.say({ files: [`https://memegen.link/${type}/${top}/${bottom}.jpg`] }) - .catch(err => msg.say(err)); + .catch(err => msg.say('No Results.')); } }; diff --git a/commands/random/soundboard.js b/commands/random/soundboard.js index f3151144..3417fac4 100644 --- a/commands/random/soundboard.js +++ b/commands/random/soundboard.js @@ -49,7 +49,7 @@ module.exports = class SoundboardCommand extends Command { return null; }); } catch (err) { - return msg.say(err); + return msg.say('No Results.'); } } }; diff --git a/commands/random/spam.js b/commands/random/spam.js index 4b137f77..a6224cfd 100644 --- a/commands/random/spam.js +++ b/commands/random/spam.js @@ -16,6 +16,6 @@ module.exports = class SpamCommand extends Command { if (!msg.channel.permissionsFor(this.client.user).has('ATTACH_FILES')) return msg.say('This Command requires the `Attach Files` Permission.'); return msg.say({ files: [path.join(__dirname, '..', '..', 'assets', 'images', 'spam.png')] }) - .catch(err => msg.say(err)); + .catch(() => msg.say('An Error Occurred while sending the image.')); } }; diff --git a/commands/random/strawpoll.js b/commands/random/strawpoll.js index 153a84ea..cf6f1784 100644 --- a/commands/random/strawpoll.js +++ b/commands/random/strawpoll.js @@ -46,7 +46,7 @@ module.exports = class StrawpollCommand extends Command { http://strawpoll.me/${body.id} `); } catch (err) { - return msg.say(err); + return msg.say('An Error Occurred.'); } } }; diff --git a/commands/random/today.js b/commands/random/today.js index 8cdb7cd9..079f61e1 100644 --- a/commands/random/today.js +++ b/commands/random/today.js @@ -30,7 +30,7 @@ module.exports = class TodayCommand extends Command { .setDescription(`${event.year}: ${event.text}`); return msg.embed(embed); } catch (err) { - return msg.say(err); + return msg.say('An Error Occurred.'); } } }; diff --git a/commands/random/wouldyourather.js b/commands/random/wouldyourather.js index 1a64bc6a..e13f9b3c 100644 --- a/commands/random/wouldyourather.js +++ b/commands/random/wouldyourather.js @@ -27,7 +27,7 @@ module.exports = class WouldYouRatherCommand extends Command { .setDescription(`${body.choicea} OR ${body.choiceb}?`); return msg.embed(embed); } catch (err) { - return msg.say(err); + return msg.say('An Error Occurred.'); } } }; diff --git a/commands/randomimg/cat.js b/commands/randomimg/cat.js index 060f406d..f87e09fe 100644 --- a/commands/randomimg/cat.js +++ b/commands/randomimg/cat.js @@ -20,9 +20,9 @@ module.exports = class CatCommand extends Command { const { body } = await snekfetch .get('http://random.cat/meow'); return msg.say({ files: [body.file] }) - .catch(err => msg.say(err)); + .catch(() => msg.say('An Error Occurred while sending the image.')); } catch (err) { - return msg.say(err); + return msg.say('An Error Occurred.'); } } }; diff --git a/commands/randomimg/dog.js b/commands/randomimg/dog.js index 0686755f..97af41d7 100644 --- a/commands/randomimg/dog.js +++ b/commands/randomimg/dog.js @@ -19,9 +19,9 @@ module.exports = class DogCommand extends Command { const { body } = await snekfetch .get('https://random.dog/woof.json'); return msg.say({ files: [body.url] }) - .catch(err => msg.say(err)); + .catch(() => msg.say('An Error Occurred while sending the image.')); } catch (err) { - return msg.say(err); + return msg.say('An Error Occurred.'); } } }; diff --git a/commands/randomimg/xiaopai.js b/commands/randomimg/xiaopai.js index e95c6eab..29f54a91 100644 --- a/commands/randomimg/xiaopai.js +++ b/commands/randomimg/xiaopai.js @@ -18,6 +18,6 @@ module.exports = class XiaoCommand extends Command { return msg.say('This Command requires the `Attach Files` Permission.'); const xiao = Math.floor(Math.random() * 10) + 1; return msg.say({ files: [path.join(__dirname, '..', '..', 'assets', 'images', `xiaopai${xiao}.png`)] }) - .catch(err => msg.say(err)); + .catch(() => msg.say('An Error Occurred while sending the image.')); } }; diff --git a/commands/randomimg/xkcd.js b/commands/randomimg/xkcd.js index 11e23dc4..a9e31b44 100644 --- a/commands/randomimg/xkcd.js +++ b/commands/randomimg/xkcd.js @@ -32,16 +32,16 @@ module.exports = class XKCDCommand extends Command { const current = await snekfetch .get('https://xkcd.com/info.0.json'); if (type === 'today') return msg.say({ files: [current.body.img] }) - .catch(err => msg.say(err)); + .catch(() => msg.say('An Error Occurred while sending the image.')); else { const random = Math.floor(Math.random() * current.body.num) + 1; const { body } = await snekfetch .get(`https://xkcd.com/${random}/info.0.json`); return msg.say({ files: [body.img] }) - .catch(err => msg.say(err)); + .catch(() => msg.say('An Error Occurred while sending the image.')); } } catch (err) { - return msg.say(err); + return msg.say('An Error Occurred.'); } } }; diff --git a/commands/search/anime.js b/commands/search/anime.js index dcb9d814..3d8d84f6 100644 --- a/commands/search/anime.js +++ b/commands/search/anime.js @@ -57,7 +57,7 @@ module.exports = class AnimeCommand extends Command { anime.entry[0].end_date[0], true); return msg.embed(embed); } catch (err) { - return msg.say('Error: No Results.'); + return msg.say('An Error Occurred. There were most likely no results.'); } } }; diff --git a/commands/search/botinfo.js b/commands/search/botinfo.js index 7cc1ddde..ea3cf9df 100644 --- a/commands/search/botinfo.js +++ b/commands/search/botinfo.js @@ -43,7 +43,7 @@ module.exports = class BotSearchCommand extends Command { body.prefix, true); return msg.embed(embed); } catch (err) { - return msg.say('No Results.'); + return msg.say('An Error Occurred. There were most likely no results.'); } } }; diff --git a/commands/search/define.js b/commands/search/define.js index 231c2a3d..63f564fb 100644 --- a/commands/search/define.js +++ b/commands/search/define.js @@ -42,7 +42,7 @@ module.exports = class DefineCommand extends Command { .setDescription(body[0].text); return msg.embed(embed); } catch (err) { - return msg.say(err); + return msg.say('An Error Occurred. There were most likely no results.'); } } }; diff --git a/commands/search/forecast.js b/commands/search/forecast.js index 9ed331f8..aee00dc9 100644 --- a/commands/search/forecast.js +++ b/commands/search/forecast.js @@ -54,7 +54,7 @@ module.exports = class ForecastCommand extends Command { `**High:** ${forecasts[6].high}°F, **Low:** ${forecasts[6].low}°F, **Condition:** ${forecasts[6].text}`); return msg.embed(embed); } catch (err) { - return msg.say(err); + return msg.say('An Error Occurred. There were most likely no results.'); } } }; diff --git a/commands/search/google.js b/commands/search/google.js index 2133993c..29d4bd88 100644 --- a/commands/search/google.js +++ b/commands/search/google.js @@ -35,7 +35,7 @@ module.exports = class GoogleCommand extends Command { href = querystring.parse(href.replace('/url?', '')); return message.edit(href.q); } catch (err) { - return message.edit('Error: No Results.'); + return message.edit('An Error Occurred. There were most likely no results.'); } } }; diff --git a/commands/search/imdb.js b/commands/search/imdb.js index b026695d..dfbf34c0 100644 --- a/commands/search/imdb.js +++ b/commands/search/imdb.js @@ -54,7 +54,7 @@ module.exports = class IMDBCommand extends Command { body.Actors); return msg.embed(embed); } catch (err) { - return msg.say(err); + return msg.say('An Error Occurred. There were most likely no results.'); } } }; diff --git a/commands/search/konachan.js b/commands/search/konachan.js index a4056011..ff84e0cf 100644 --- a/commands/search/konachan.js +++ b/commands/search/konachan.js @@ -34,9 +34,9 @@ module.exports = class KonachanCommand extends Command { }); if (!body.length) throw new Error('No Results.'); return msg.say(query ? `Result for ${query}:` : 'Random Image:', { files: [`https:${body[0].file_url}`] }) - .catch(err => msg.say(err)); + .catch(() => msg.say('An Error Occurred while sending the image.')); } catch (err) { - return msg.say(err); + return msg.say('An Error Occurred. There were most likely no results.'); } } }; diff --git a/commands/search/manga.js b/commands/search/manga.js index 7fb98d73..591f6aff 100644 --- a/commands/search/manga.js +++ b/commands/search/manga.js @@ -57,7 +57,7 @@ module.exports = class MangaCommand extends Command { manga.entry[0].end_date[0], true); return msg.embed(embed); } catch (err) { - return msg.say('Error: No Results.'); + return msg.say('An Error Occurred. There were most likely no results.'); } } }; diff --git a/commands/search/map.js b/commands/search/map.js index e928d02a..bdf057ea 100644 --- a/commands/search/map.js +++ b/commands/search/map.js @@ -45,9 +45,9 @@ module.exports = class MapCommand extends Command { key: GOOGLE_KEY }); return msg.say({ files: [{ attachment: body, name: 'map.png' }] }) - .catch(err => msg.say(err)); + .catch(() => msg.say('An Error Occurred while sending the image.')); } catch (err) { - return msg.say(err); + return msg.say('An Error Occurred. There were most likely no results.'); } } }; diff --git a/commands/search/neopet.js b/commands/search/neopet.js index 12b5d911..975c4630 100644 --- a/commands/search/neopet.js +++ b/commands/search/neopet.js @@ -34,7 +34,7 @@ module.exports = class NeopetCommand extends Command { if (!link.includes('cp')) throw new Error('Invalid Pet Name.'); return msg.say(link); } catch (err) { - return msg.say(err); + return msg.say('An Error Occurred. There were most likely no results.'); } } }; diff --git a/commands/search/osu.js b/commands/search/osu.js index 91ac4944..96c7abe1 100644 --- a/commands/search/osu.js +++ b/commands/search/osu.js @@ -64,7 +64,7 @@ module.exports = class OsuCommand extends Command { body[0].count_rank_a, true); return msg.embed(embed); } catch (err) { - return msg.say(err); + return msg.say('An Error Occurred. There were most likely no results.'); } } }; diff --git a/commands/search/soundcloud.js b/commands/search/soundcloud.js index a56b12cc..62577d54 100644 --- a/commands/search/soundcloud.js +++ b/commands/search/soundcloud.js @@ -51,7 +51,7 @@ module.exports = class SoundCloudCommand extends Command { body[0].favoritings_count, true); return msg.embed(embed); } catch (err) { - return msg.say(err); + return msg.say('An Error Occurred. There were most likely no results.'); } } }; diff --git a/commands/search/urban.js b/commands/search/urban.js index dadcba2f..187582bb 100644 --- a/commands/search/urban.js +++ b/commands/search/urban.js @@ -41,7 +41,7 @@ module.exports = class UrbanCommand extends Command { body.list[0].example.substr(0, 2000) || 'None'); return msg.embed(embed); } catch (err) { - return msg.say(err); + return msg.say('An Error Occurred. There were most likely no results.'); } } }; diff --git a/commands/search/wattpad.js b/commands/search/wattpad.js index dd5ea411..f989f15a 100644 --- a/commands/search/wattpad.js +++ b/commands/search/wattpad.js @@ -54,7 +54,7 @@ module.exports = class WattpadCommand extends Command { body.stories[0].commentCount, true); return msg.embed(embed); } catch (err) { - return msg.say(err); + return msg.say('An Error Occurred. There were most likely no results.'); } } }; diff --git a/commands/search/weather.js b/commands/search/weather.js index 5ac81492..bce53b90 100644 --- a/commands/search/weather.js +++ b/commands/search/weather.js @@ -63,7 +63,7 @@ module.exports = class WeatherCommand extends Command { body.query.results.channel.wind.speed, true); return msg.embed(embed); } catch (err) { - return msg.say(err); + return msg.say('An Error Occurred. There were most likely no results.'); } } }; diff --git a/commands/search/wikipedia.js b/commands/search/wikipedia.js index 842b7857..2fe88606 100644 --- a/commands/search/wikipedia.js +++ b/commands/search/wikipedia.js @@ -45,7 +45,7 @@ module.exports = class WikipediaCommand extends Command { .setDescription(body.query.pages[0].extract.substr(0, 2000).replace(/[\n]/g, '\n\n')); return msg.embed(embed); } catch (err) { - return msg.say(err); + return msg.say('An Error Occurred. There were most likely no results.'); } } }; diff --git a/commands/search/youtube.js b/commands/search/youtube.js index 5e965cef..4b9781ed 100644 --- a/commands/search/youtube.js +++ b/commands/search/youtube.js @@ -45,7 +45,7 @@ module.exports = class YouTubeCommand extends Command { .setThumbnail(body.items[0].snippet.thumbnails.default.url); return msg.embed(embed); } catch (err) { - return msg.say(err); + return msg.say('An Error Occurred. There were most likely no results.'); } } }; diff --git a/commands/search/yugioh.js b/commands/search/yugioh.js index bd02e8d7..baab7d78 100644 --- a/commands/search/yugioh.js +++ b/commands/search/yugioh.js @@ -59,7 +59,7 @@ module.exports = class YuGiOhCommand extends Command { return msg.embed(embed); } } catch (err) { - return msg.say(err); + return msg.say('An Error Occurred. There were most likely no results.'); } } }; diff --git a/commands/textedit/webhook.js b/commands/textedit/webhook.js index 1c59c413..5cf266ac 100644 --- a/commands/textedit/webhook.js +++ b/commands/textedit/webhook.js @@ -36,7 +36,7 @@ module.exports = class WebhookCommand extends Command { .send({ content }); return null; } catch (err) { - return msg.say(err); + return msg.say('An Error Occurred.'); } } };