mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-25 14:21:41 +02:00
Remove tons of faulty awaits
This commit is contained in:
@@ -23,7 +23,7 @@ module.exports = class YodaCommand extends commando.Command {
|
||||
return message.channel.send(':x: Error! Nothing to translate!');
|
||||
}
|
||||
else {
|
||||
await request
|
||||
return request
|
||||
.get('https://yoda.p.mashape.com/yoda')
|
||||
.set({
|
||||
'X-Mashape-Key': config.mashapekey,
|
||||
|
||||
Reference in New Issue
Block a user