mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-07 23:05:04 +02:00
Fixes in message splitting (again)
This commit is contained in:
@@ -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});
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
@@ -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});
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user