mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-24 14:19:56 +02:00
Remove tons of faulty awaits
This commit is contained in:
@@ -26,7 +26,7 @@ module.exports = class DefineCommand extends commando.Command {
|
||||
}
|
||||
console.log(`[Command] ${message.content}`);
|
||||
let defineThis = encodeURI(message.content.split(" ").slice(1).join(" "));
|
||||
await request
|
||||
return request
|
||||
.get(`http://api.wordnik.com:80/v4/word.json/${defineThis}/definitions`)
|
||||
.query({
|
||||
limit: 1,
|
||||
|
||||
Reference in New Issue
Block a user