mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-03 23:36:43 +02:00
YuGiOh Fix
This commit is contained in:
@@ -22,7 +22,7 @@ module.exports = class YuGiOhCommand extends commando.Command {
|
||||
request
|
||||
.get('http://yugiohprices.com/api/card_data/' + cardName)
|
||||
.then(function (response) {
|
||||
if(response.data.card_type === 'monster') {
|
||||
if(response.body.data.card_type === 'monster') {
|
||||
const embed = new Discord.RichEmbed()
|
||||
.setColor(0xBE5F1F)
|
||||
.setTitle(response.body.data.name)
|
||||
|
||||
Reference in New Issue
Block a user