diff --git a/main.js b/main.js index 947335b..fa5ab5d 100644 --- a/main.js +++ b/main.js @@ -151,7 +151,7 @@ const ); } catch(error){ - if(!error.code.startsWith?.('commander.')) + if(!error.code?.startsWith?.('commander.')) throw error; } return response; @@ -192,7 +192,7 @@ eris.on( messageReference: { messageID } } ); - chunk = `\`\`\`\n${line}`; + chunk = isCodeBlock ? `\`\`\`\n${line}` : line; } } };