From 19cab912df94fbc412b6b0cfbf69c8f7a26e68cf Mon Sep 17 00:00:00 2001 From: derpystuff <3515180-derpystuff@users.noreply.gitlab.com> Date: Thu, 7 Jul 2022 15:44:06 +0200 Subject: [PATCH] invite error message --- commands/message/info/guild.js | 2 +- commands/message/info/invite.js | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/commands/message/info/guild.js b/commands/message/info/guild.js index 31ba668..f554721 100644 --- a/commands/message/info/guild.js +++ b/commands/message/info/guild.js @@ -99,7 +99,7 @@ module.exports = { guildCard.fields = guildCard.fields.concat(featureCards) } - return editOrReply(context, { embeds: [guildCard] }) + return editOrReply(context, guildCard) }catch(e){ console.log(e) } diff --git a/commands/message/info/invite.js b/commands/message/info/invite.js index a69f8f1..8b2ca7a 100644 --- a/commands/message/info/invite.js +++ b/commands/message/info/invite.js @@ -55,9 +55,9 @@ module.exports = { inviteCard.fields = inviteCard.fields.concat(featureCards) } - return editOrReply(context, { embeds: [inviteCard] }) + return editOrReply(context, inviteCard) }catch(e){ - console.log(e) + return editOrReply(context, createEmbed("error", context, "Unable to fetch invite link.")) } }, }; \ No newline at end of file