mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-10 10:57:08 +02:00
Error handling in translate command
This commit is contained in:
@@ -41,7 +41,7 @@ class TranslateCommand extends commando.Command {
|
||||
res.text);
|
||||
message.channel.sendEmbed(embed).catch(console.error);
|
||||
}).catch(err => {
|
||||
console.error(err);
|
||||
message.channel.sendMessage(":x: Error!");
|
||||
});
|
||||
}
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user