From 77dcad6752869ba5540ded2c42299688085f6417 Mon Sep 17 00:00:00 2001 From: dragonfire535 Date: Fri, 3 Mar 2017 20:07:53 -0500 Subject: [PATCH] Fixes in message splitting (again) --- commands/search/urban.js | 4 ++-- commands/textedit/pirate.js | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/commands/search/urban.js b/commands/search/urban.js index c7267c47..64c297f2 100644 --- a/commands/search/urban.js +++ b/commands/search/urban.js @@ -26,9 +26,9 @@ class UrbanDictionary extends commando.Command { } else if(json.definition === '') { message.channel.sendMessage(":x: Error! Word has no definition!"); } else if(json.example === '') { - message.channel.sendMessage("**Definition:**\n" + json.definition, {split:{maxLength:1900}}); + message.channel.sendMessage("**Definition:**\n" + json.definition, {split:true}); } else { - message.channel.sendMessage("**Definition:**\n" + json.definition + "\n\n**Example:**\n" + json.example, {split:{maxLength:1900}}); + message.channel.sendMessage("**Definition:**\n" + json.definition + "\n\n**Example:**\n" + json.example, {split:true}); } }); } diff --git a/commands/textedit/pirate.js b/commands/textedit/pirate.js index 4ddc184c..6774b094 100644 --- a/commands/textedit/pirate.js +++ b/commands/textedit/pirate.js @@ -23,7 +23,7 @@ class PirateCommand extends commando.Command { if(messagecontent === "") { message.channel.sendMessage(":x: Error! Nothing to translate!"); } else { - message.channel.sendMessage(pirate, {split:{maxLength:1900}}); + message.channel.sendMessage(pirate, {split:true}); } } }